source: trunk/dports/emulators/nonpareil/files/patch-src-util.diff @ 47759

Last change on this file since 47759 was 47759, checked in by krischik@…, 9 years ago

a high-fidelity simulator for calculators.

File size: 1.3 KB
  • util.c

    diff -u -r src.orig/util.c src/util.c
    old new  
    133133// strlcpy will copy as much of src into dest as it can, up to one less than
    134134// the maximum length of dest specified by the argument l.  Unlike strncpy(),
    135135// strlcpy() will always leave dest NULL-terminated on return.
    136 char *strlcpy (char *dest, const char *src, size_t l)
    137 {
    138   strncpy (dest, src, l);
    139   dest [l - 1] = '\0';
    140   return dest;
    141 }
     136/*char *strlcpy (char *dest, const char *src, size_t l)*/
     137/*{*/
     138  /*strncpy (dest, src, l);*/
     139  /*dest [l - 1] = '\0';*/
     140  /*return dest;*/
     141/*}*/
    142142
    143143
    144144// strlncpy will copy up to n characters from src to dest, but not more than
  • util.h

    diff -u -r src.orig/util.h src/util.h
    old new  
    5656// strlcpy will copy as much of src into dest as it can, up to one less than
    5757// the maximum length of dest specified by the argument l.  Unlike strncpy(),
    5858// strlcpy() will always leave dest NULL-terminated on return.
    59 char *strlcpy (char *dest, const char *src, size_t l);
     59/*char *strlcpy (char *dest, const char *src, size_t l);*/
    6060
    6161
    6262// strlncpy will copy up to n characters from src to dest, but not more than
Note: See TracBrowser for help on using the repository browser.