Search:

Type: Posts; User: nonpuz

Search: Search took 0.01 seconds.

  1. Replies
    133
    Views
    19,623

    This is directly from N1570 the final version of...

    This is directly from N1570 the final version of the C11 revision:
  2. Replies
    133
    Views
    19,623

    I was referring to the C11 draft, _NOT_ the...

    I was referring to the C11 draft, _NOT_ the microsoft garbage.
  3. Replies
    133
    Views
    19,623

    Yeah, it was replaced by a "safer" alternative...

    Yeah, it was replaced by a "safer" alternative gets_s which takes a size parameter.

    I have to disagree with your initial assessment regarding gets() being as unsafe as strcpy() is. You can never,...
  4. Replies
    133
    Views
    19,623

    Again, I have to disagree with you there. While...

    Again, I have to disagree with you there. While I'll agree that both methods may have drawbacks, lets see which error is easier to spot:


    /* You can visually see that b is longer then a */
    char...
  5. Replies
    133
    Views
    19,623

    I'd like to make 2 small but important points...

    I'd like to make 2 small but important points here.

    First, it's a bad idea to specify the string length when initializing an array with a string literal, Example:


    char ar[5] = "Hello George";...
Results 1 to 5 of 6