Got it. Thanks :).
Type: Posts; User: dar32
Got it. Thanks :).
He's the developer of CppCMS.
I didn't really understand. Why use a pointer to a pointer can't i just write:
void srcp_clean(char *src)
{
if (output != NULL) free(output);
First of all thanks.
1) I didn't really read the documentation for C's getopt. I used an example I've found on google. Here is the fixed code:
while ((c = getopt (argc, argv, "f:o:")) != -1)...
Hi everyone,
Lately I have started to learn C for an application I want to write with a friend. I have some experience programming in python especially web and network enabled applications. I...
Another way to loop over a string using the fact that c strings are Null terminated:
for (i = 0;str[i] != '\0';++i) ;
And it retains the "spirit of the language" which strlen() does not.