home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / prog / ks94an.arj / K_ARG.HDR < prev    next >
Text File  |  1994-04-24  |  877b  |  37 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _Arg( cArgText, cArgStr ) --> cString
  8.  
  9. PARAMETERS:
  10.  
  11. cArgText : the string to parse
  12. cArgStr  : the specific token to extract
  13.  
  14. SHORT:
  15.  
  16. Parse strings to extract text following specfied token.
  17.  
  18. DESCRIPTION:
  19.  
  20. _Arg() extracts from one string, everything that follows a given token up
  21. to the first space or the end of the string. It is useful for parsing
  22. command lines.
  23.  
  24. NOTE:
  25.  
  26.  
  27.  
  28. EXAMPLE:
  29.  
  30. t = "/sys_sec10 /ftype@ /howdy123"
  31.  
  32. v = _arg(t,'/sys_sec')  Result: v = '10'
  33. w = _arg(t,'/ftype')    Result: w = '@'
  34. x = _arg(t,'/howdy')    Result: x = '123'
  35.  
  36. ******************************************************************************/
  37.