Search:

Type: Posts; User: dar32

Search: Search took 0.00 seconds.

  1. Thread: code review...

    by dar32
    Replies
    10
    Views
    4,172

    Got it. Thanks :).

    Got it. Thanks :).
  2. Thread: code review...

    by dar32
    Replies
    10
    Views
    4,172

    He's the developer of CppCMS...

    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);
  3. Thread: code review...

    by dar32
    Replies
    10
    Views
    4,172

    First of all thanks. 1) I didn't really read...

    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)...
  4. Thread: code review...

    by dar32
    Replies
    10
    Views
    4,172

    code review...

    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...
  5. Replies
    3
    Views
    2,012

    Another way to loop over a string using the fact...

    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.
Results 1 to 5 of 5