home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / ISOSTR.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  2KB  |  70 lines

  1. //====START_GENERATED_PROLOG======================================
  2. //
  3. //
  4. //   COMPONENT_NAME: odutils
  5. //
  6. //   CLASSES: none
  7. //
  8. //   ORIGINS: 82,27
  9. //
  10. //
  11. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //   All Rights Reserved
  13. //   Licensed Materials - Property of IBM
  14. //   US Government Users Restricted Rights - Use, duplication or
  15. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //       
  17. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //   OR PERFORMANCE OF THIS SOFTWARE.
  24. //
  25. //====END_GENERATED_PROLOG========================================
  26. //
  27. // @(#) 1.3 com/src/utils/include/ISOStr.h, odutils, od96os2, odos29646d 7/15/96 18:00:28 [ 11/15/96 15:28:59 ]
  28. /*
  29.     File:        ISOStr.h
  30.  
  31.     Contains:    Routines to manipulate ODISOStr
  32.  
  33.     Owned by:    Steve Smith, Vincent Lo.
  34.  
  35.     Copyright:    ⌐ 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  36.  
  37.     
  38.     In Progress:
  39.         
  40. */
  41.  
  42. #ifndef _ISOSTR_
  43. #define _ISOSTR_
  44.  
  45. #ifndef _ODTYPES_
  46. #include "ODTypes.h"
  47. #endif
  48.  
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. #define ODISOStrCopy(D,S)        strcpy(D,S)
  55. #define ODISOStrNCopy(D,S,L)    strncpy(D,S,L)
  56. #define ODISOStrConcat(D,S)        strcat(D,S)
  57. #define ODISOStrNConcat(D,S,L)    strncat(D,S,L)
  58. #define ODISOStrCompare(A,B)    strcmp(A,B)
  59. #define ODISOStrNCompare(A,B,L)    strncmp(A,B,L)
  60. #define ODISOStrEqual(A,B)        (strcmp(A,B)==0)
  61. #define ODISOStrLength(S)        strlen(S)
  62.  
  63. ODISOStr    ODISOStrFromCStr(const char* cstring);
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69. #endif /*_ISOSTR_*/
  70.