מישהי פה מבינה ב-C?

Soleil du Matin

New member
הציעו לי משהו

וזה מתקמפל אבל ברגע שאני מריצה התוכנית מתרסקת. char *name; int count; char c[1]; char *fname = "data"; char *temp; for (Jtag = -5; Jtag>(-55) ; Jtag=Jtag-5) { strncpy(temp, fname,4); itoa(abs(Jtag),name,10); strncat(temp, name,3); strncat(temp,".txt",4); file = fopen(temp, "a"); } what do you say?
 

Ana banana

New member
yes

to initializa a string you have to put null at the beginning: string[0] ="\0" sorry about the delay, I has to go to a conference call
 
למעלה