I\'m trying to download a test file from my server using the cURL library with this code: #define CURL_STATICLIB
main.c:132:26: warning: \"/*\" within comment main.c: In function ‘importSettings’: main.c:152: warning: control reaches end of non-void function
I can\'t make any sense of the segmentation fault I\'m getting out of the following code: #include <stdio.h>
I have a C program (hey, I\'m cheating here, its generated C code) that crashes (segmentatio开发者_如何学运维n fault) whenever I compile it with gcc -O2 optimization flag. (gcc 4.6.0)
I am writing a program in C.I am trying to learn the difference between pass by reference and pass by value. I\'m not sure if I got those right.
The following code sorts an array of words, working on small arrays, and segfaulting on large ones (>400000 words, though I haven\'t found a limit). It is being called by a program that passes it an a
The following code compiles successfully and returns the correct results when called the first time. Making the same call a second time, I get a segmentation fault error.
i signed with stars the 2 rows that are creating the problem. the first row allocates memory for logfile, that will be used in the second signed row.
both of these functions are (under my compiler at least) guaranteed to create a seg fault, yet i have no idea why. i really like their functionality and i have seen similar examples, so i am curious t
In an effort to learn more about the inner wor开发者_开发技巧kings of c++ I decided to write my own string class. However I am stuck on the .toUpper() and .toLower() functions. Here is my code.