home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / mint / mntlib24 / strcoll.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-03  |  428 b   |  24 lines

  1. /* dummy implementations for strcoll and strxfrm, that doesn't know about
  2.    locales */
  3.  
  4. #include <string.h>
  5.  
  6. int
  7. strcoll (scan1, scan2)
  8.      const char *scan1;
  9.      const char *scan2;
  10. {
  11.   return strcmp (scan1, scan2);
  12. }
  13.  
  14. size_t
  15. strxfrm (to, from, maxsize)
  16.      char *to;
  17.      const char *from;
  18.      size_t maxsize;
  19. {
  20.   (void)strncpy (to, from, maxsize - 1);
  21.   to[maxsize] = '\0';
  22.   return strlen (to);
  23. }
  24.