home *** CD-ROM | disk | FTP | other *** search
/ ftp.freefriends.org / ftp.freefriends.org.tar / ftp.freefriends.org / arnold / Source / mush.rstevens.tar.gz / mush.tar / strings.h < prev    next >
C/C++ Source or Header  |  1990-07-04  |  1KB  |  36 lines

  1. /* @(#)strings.h    (c) copyright 9/3/86 (Dan Heller) */
  2.  
  3. /*
  4.  * If you *know* your sprintf() returns char*, you can remove the follow
  5.  * define.  Careful, "new" 4.3BSD's sprintf returns int.  See README
  6.  */
  7. #define sprintf Sprintf
  8. #ifdef SYSV
  9. #define    index    strchr
  10. #define    rindex    strrchr
  11. #endif /* SYSV */
  12.  
  13. /* External function definitions for routines described in string(3).  */
  14. extern char
  15.     *strcat(), *strncat(), *strcpy(), *strncpy(),
  16.     *index(), *rindex(), *getenv();
  17. extern int
  18.     strcmp(), strncmp(), strlen();
  19.  
  20. extern char
  21.     *Sprintf(),        /* See comments above function in strings.c */
  22.     *argv_to_string(),    /* convert a vector of strings into one string */
  23.     *any(),         /* return first char in str2 that exists in str1 */
  24.     *basename(),    /* return the last component of a file path */
  25.     *ctrl_strcpy(),    /* string copy converting control chars to ascii */
  26.     *itoa(),        /* return a string representation of a number */
  27.     *lcase_strcpy(),    /* just like strcpy, but convert all chars to lower */
  28.     *m_xlate(),        /* translate string from ascii to ctrl-char format */
  29.     *my_atoi(),     /* do an atoi, but return the last char parsed */
  30.     *no_newln(),    /* remove newline and extra whitespace - return end */
  31.     *savestr();        /* strcpy arg into malloc-ed memory; return address */
  32.  
  33. extern void
  34.     print_argv(),    /* prints an argv as one string */
  35.     putstring();    /* put a string */
  36.