what about memset?3824 (10/16/2008 10:47:03 PM) comp.lang.c When I want to clear memory space this is what I typically do myself, char a[100]; int i; for (i=0;i != 100;++i) a[i]='\0'; Now with the function memset I could do the same thing and it would be portable... nospam116(1187)
Passing string parameter to funtion1324 (10/19/2008 3:17:58 PM) comp.lang.c char word[50]; in = fopen("test.txt", "r"); while(fscanf(in,"%s",&word)!=EOF) { /* Print all words */ /* printf("%s\n",&word); */ /* What I want to do: Process all words, somethink like: */ pro... masso600(3)
Pascal - C (2)6032 (11/1/2008 9:43:55 PM) comp.lang.c Hallo allemaal, During the conversion of my program from Pascal to C, I was more or less able to find the C equivalent of most Pascal functions so far. Only four gave me some real trouble. I solved them but i... Ruud.Baltissen592(59)
programming project, revise547 (11/5/2008 3:09:29 PM) comp.lang.c Hey, I am working on a project where a program has to read in a collection of exam scores ranging in value from 0 =96 100. The program should count and print the number of outstanding scores (90-100) the number... jordanvdf(2)
free memory question2527 (11/14/2008 7:56:50 AM) comp.lang.c Hi all, Suppose that I have the next program. My question is where to free the pointer (ptr) dynamically allocated in function "test_free"? Freeing "ptr" before return (), implies that "calc" will be lost, then... mazouz.nezhate(88)
its urgent.pls help me.2417 (11/14/2008 5:37:13 PM) comp.lang.c hi,i urgently need a project including graphics,pointers. not a major one. pls send at "jahanmona@gmail.com" ... jahanmona(8)
Undefined Behavior. ..3837 (11/15/2008 11:41:34 AM) comp.lang.c Will the following statement invoke undefined behavior : a^=b,b^=a,a^=b ; given that a and b are of int-type ?? Be cautious, I have not written a^=b^=a^=b ; which, of course, is undefined. I am having some c... coolguyaroundyou(23)
**p vs. p[][]1826 (11/17/2008 6:13:28 AM) comp.lang.c Is p declared as a 2D array, p[m][n], essentially the same as **p? If I try declararing p in main() as p[m][n] and then pass it as an argument to a routine (function) with corresponding parameter **p, I get "i... jchludzinski(50)
Why PHP is so succesfull?2123 (11/25/2008 10:53:45 AM) comp.programming Hi all, can anybody explain to me why PHP is so succesfull? I am new to the world of web applications and doing a search for a Web Hosting I have noticed that most of them supports only PHP as programming langu... gepporello(2)