home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume25 / finger / part01 / strings.h < prev    next >
C/C++ Source or Header  |  1992-04-03  |  790b  |  27 lines

  1. /*
  2.  * strings.h - help for systems without old style string functions
  3.  *
  4.  * Copyright (C) 1989, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define STRINGS_RCSID "$Id: strings.h,v 3.0 90/07/06 13:11:47 budd Rel $"
  16.  
  17. # ifndef _STRINGS_H_
  18. # define _STRINGS_H_
  19.  
  20. # include <string.h>            /* sigh.. nested include */
  21. # define index(s,c) strchr(s,c)
  22. # define rindex(s,c) strrchr(s,c)    /* what a dumb name! */
  23.  
  24. # define bzero(s,c) memset(s,'\0',c)
  25. # define bcopy(s,d,c) memcpy(d,s,c)
  26. # endif /* _STRINGS_H_ not defined */
  27.