Search:

Type: Posts; User: yoshiznit123

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,193

    Yea, I guess that would work. The reason I had it...

    Yea, I guess that would work. The reason I had it is this:



    void skip_space(char** str)
    {
    for(; **str != '\0' && isspace(**str); (*str)++);
    }
  2. Replies
    8
    Views
    2,193

    Syntax question: &(++x)

    Hi, just a weird syntax-related question. Why can't I do this:



    some_function( &(++x) );


    where its passing a pointer to an already-incremented variable x? Seems to me it should be legal,...
  3. Replies
    5
    Views
    1,837

    There's a bunch of ways to do this, look up...

    There's a bunch of ways to do this, look up "sorting algorithms" on Wikipedia. The easiest is probably to do something like this:




    int numbers[10]; //Containing your numbers

    int min =...
  4. Replies
    4
    Views
    2,624

    Thanks man, I was hoping for an equivalent of the...

    Thanks man, I was hoping for an equivalent of the PHP addslashes() and stripslashes(), but whatever. :-) Thanks for the quick reply. By the way, looking through the coreutils printf(1) source, found...
  5. Replies
    4
    Views
    2,624

    "Unescaping" literal strings

    Hi everyone,
    This is my first post :-). I was wondering if there was a standard library function that converted between a literal string and its escaped C version.
    For example, a function that...
Results 1 to 5 of 5