Changeset 29353 in project


Ignore:
Timestamp:
07/14/13 15:51:11 (7 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [85.164.10.19]: sizeof(char) is defined to be 1 in C, so no need to divide sizeof(buffer) by sizeof(buffer[0])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/language-comparison

    r28883 r29353  
    3131<td><enscript highlight="scheme">(read-line)</enscript></td>
    3232<td><enscript highlight="c">char buffer[1024];
    33 fgets(buffer, sizeof(buffer)/sizeof(buffer[0], stdin);</enscript></td>
     33fgets(buffer, sizeof(buffer), stdin);</enscript></td>
    3434<td>...</td>
    3535<td><enscript highlight="perl">&lt;STDIN&gt;</enscript></td>
Note: See TracChangeset for help on using the changeset viewer.