Print this page
XXXX update sendmail to 8.14.9
   1 /*
   2  * Copyright (c) 2000-2001, 2003 Sendmail, Inc. and its suppliers.
   3  *      All rights reserved.
   4  *
   5  * By using this file, you agree to the terms and conditions set
   6  * forth in the LICENSE file which can be found at the top level of
   7  * the sendmail distribution.
   8  *
   9  *      $Id: string.h,v 1.38 2003/10/10 17:56:57 ca Exp $
  10  */
  11 
  12 #pragma ident   "%Z%%M% %I%     %E% SMI"
  13 
  14 /*
  15 **  libsm string manipulation
  16 */
  17 
  18 #ifndef SM_STRING_H
  19 # define SM_STRING_H
  20 
  21 # include <sm/gen.h>
  22 # include <sm/varargs.h>
  23 # include <string.h> /* strlc{py,at}, strerror */
  24 
  25 /* return number of bytes left in a buffer */
  26 #define SPACELEFT(buf, ptr)     (sizeof buf - ((ptr) - buf))
  27 
  28 extern int PRINTFLIKE(3, 4)
  29 sm_snprintf __P((char *, size_t, const char *, ...));
  30 
  31 extern bool
  32 sm_match __P((const char *_str, const char *_pattern));
  33 


   1 /*
   2  * Copyright (c) 2000-2001, 2003 Proofpoint, Inc. and its suppliers.
   3  *      All rights reserved.
   4  *
   5  * By using this file, you agree to the terms and conditions set
   6  * forth in the LICENSE file which can be found at the top level of
   7  * the sendmail distribution.
   8  *
   9  *      $Id: string.h,v 1.39 2013-11-22 20:51:31 ca Exp $
  10  */
  11 


  12 /*
  13 **  libsm string manipulation
  14 */
  15 
  16 #ifndef SM_STRING_H
  17 # define SM_STRING_H
  18 
  19 # include <sm/gen.h>
  20 # include <sm/varargs.h>
  21 # include <string.h> /* strlc{py,at}, strerror */
  22 
  23 /* return number of bytes left in a buffer */
  24 #define SPACELEFT(buf, ptr)     (sizeof buf - ((ptr) - buf))
  25 
  26 extern int PRINTFLIKE(3, 4)
  27 sm_snprintf __P((char *, size_t, const char *, ...));
  28 
  29 extern bool
  30 sm_match __P((const char *_str, const char *_pattern));
  31