home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib32.zoo / strcoll.c < prev    next >
C/C++ Source or Header  |  1992-09-17  |  405b  |  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.