Search:

Type: Posts; User: Lasston

Search: Search took 0.01 seconds.

  1. Replies
    26
    Views
    11,871

    I am trying to learn standard, unextended C right...

    I am trying to learn standard, unextended C right now, so I guess I'll be taking out the array.

    So... is there just no way to do something like this in the C language? It seems like no matter...
  2. Replies
    26
    Views
    11,871

    OK two quickie questions about this: 1) If...

    OK two quickie questions about this:

    1) If mkruk's idea is illegal, why does it work perfectly earlier in the code? I use
    char rstring[11+strlen("dark__fun")];
    snprintf(rstring,...
  3. Replies
    26
    Views
    11,871

    Sorry, but this doesn't seem to be working...

    Sorry, but this doesn't seem to be working universally...

    I managed to get that specific spot of code working with mkruk's solution (not making it a pointer) but it isn't working later in the...
  4. Replies
    26
    Views
    11,871

    Sprintf overflows my buffer -- why?

    First, the code:


    main(int argc, char * const argv[]) {
    char *ident_a=0; // Initialize ident_a as a null pointer so we can easily check for that later
    ident_a=malloc(sizeof(the_argument)); //...
Results 1 to 4 of 4