home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Utilities / Interfaces / ISOStr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  760 b   |  43 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ISOStr.h
  3.  
  4.     Contains:    Routines to manipulate ODISOStr
  5.  
  6.     Owned by:    Steve Smith, Vincent Lo.
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     
  11.     In Progress:
  12.         
  13. */
  14.  
  15. #ifndef _ISOSTR_
  16. #define _ISOSTR_
  17.  
  18. #ifndef _ODTYPES_
  19. #include "ODTypes.h"
  20. #endif
  21.  
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. #define ODISOStrCopy(D,S)        strcpy(D,S)
  28. #define ODISOStrNCopy(D,S,L)    strncpy(D,S,L)
  29. #define ODISOStrConcat(D,S)        strcat(D,S)
  30. #define ODISOStrNConcat(D,S,L)    strncat(D,S,L)
  31. #define ODISOStrCompare(A,B)    strcmp(A,B)
  32. #define ODISOStrNCompare(A,B,L)    strncmp(A,B,L)
  33. #define ODISOStrEqual(A,B)        (strcmp(A,B)==0)
  34. #define ODISOStrLength(S)        strlen(S)
  35.  
  36. ODISOStr    ODISOStrFromCStr(const char* cstring);
  37.  
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41.  
  42. #endif /*_ISOSTR_*/
  43.