home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / os2prgc.zip / str.h < prev    next >
C/C++ Source or Header  |  1995-03-06  |  2KB  |  56 lines

  1. /*****************************************************************************
  2.  
  3.   STR.H -- Sample code for string and character type handling.
  4.   Copyright (C) 1993,94,95 by Craig Morrison, All Rights Reserved.
  5.  
  6.   You may use this code in your own projects, regardless of renumeration.
  7.   All I ask is that you prominently display the above copyright notice.
  8.  
  9.   Should you need assistance, I can be contacted at the following addresses:
  10.  
  11.         Fidonet:        Craig Morrison, 1:201/60@fidonet.org
  12.         Internet:       cam@wpc.cioe.com
  13.         Post:           Craig Morrison
  14.                         1316 Ferry St.
  15.                         Lafayette, IN 47901-1533
  16.                         USA
  17.  
  18.   NOTES:
  19.  
  20.     You'll notice the complete lack of any references to run-time
  21.     library functions. This was done on purpose so that *I* could
  22.     control what happens when a thread gets killed. This package
  23.     contains just about everything you'll need to do comm port/file
  24.     I/O, string manipulation and ordinal number conversions.
  25.  
  26.  *****************************************************************************/
  27. char cupper(char c);
  28. char clower(char c);
  29. char *supper(char *s);
  30. char *slower(char *s);
  31. unsigned long lenstr(char *s);
  32. char *cpystr(char *dest, char *src);
  33. char *catstr(char *dest, char *src);
  34. char *cpystrn(char *dest, char *src, unsigned long len);
  35. char *catstrn(char *dest, char *src, unsigned long len);
  36. int cmpstr(char *s1, char *s2);
  37. int cmpstri(char *s1, char *s2);
  38. int cmpstrn(char *s1, char *s2, unsigned long len);
  39. int cmpstrni(char *s1, char *s2, unsigned long len);
  40. char *strinstr(char *n, char *h);
  41. char *strinstri(char *n, char *h);
  42. char *charinstr(char *s, char c);
  43. char *rcharinstr(char *s, char c);
  44. void movemem(void *d, void *s, unsigned long l);
  45. void setmem(void *d, char f, unsigned long l);
  46. char *ultoasc(unsigned long num, char *buf);
  47. char *ltoasc(long num, char *buf);
  48. int isalpha(char c);
  49. int isdig(char c);
  50. int iswspace(char c);
  51. long asctol(char *n);
  52. unsigned long asctoul(char *n);
  53. unsigned char *translate(unsigned char *string);
  54. char *GetNextString(char *i, char *o);
  55. int formatStr(char *buf, char *fmt, unsigned long *items);
  56.