home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / SourceCode / libcs / README < prev    next >
Text File  |  1989-04-09  |  4KB  |  109 lines

  1. The files in this directory constitute the exportable CMU Computer Science
  2. department additions to the C runtime library.  They are part of the CMU
  3. CS runtime library by default, but may be exported separately as LIBCS.
  4.  
  5. Descriptions of user-callable routines are as follows:
  6.  
  7. execute process and wait for exit:
  8.     run        run ala execl
  9.     runv        run ala execv
  10.     runp        run from path ala execlp
  11.     runvp        run from path ala execvp
  12.  
  13. path utilities:
  14.     abspath        determine absolute pathname from path
  15.     path        break path into file and/or directory components
  16.  
  17. ascii translation:
  18.     atoh        ascii to hexadecimal
  19.     atoo        ascii to octal
  20.     atot        ascii to time_t
  21.  
  22. string utilities:
  23.     folddown    fold string to lowercase
  24.     foldup        fold string to uppercase
  25.     salloc        allocate dynamic copy of string
  26.     sindex        find index of substring
  27.     skipover    skip characters in cset
  28.     skipto        skip characters not in cset
  29.     ulstrcmp    case-insensitive version of strcmp
  30.     ulstrncmp    case-insensitive version of strncmp
  31.  
  32. string table utilities:
  33.     prstab        print string table to stdout
  34.     fprstab        print string table to file
  35.     srchscore    perform approximate string matching
  36.     stablk        string table lookup
  37.     stabsearch    search for best match within string table
  38.     stlmatch    match leftmost part of string
  39.  
  40. argument parsing:
  41.     nxtarg        strip off arguments from a string
  42.     boolarg        parse boolean argument
  43.     chrarg        parse character argument
  44.     doublearg    parse double argument
  45.     floatarg    parse float argument
  46.     hexarg        parse hexadecimal integer argument
  47.     intarg        parse decimal integer argument
  48.     longarg        parse decimal long integer argument
  49.     octarg        parse octal integer argument
  50.     searcharg    parse "best" string table argument
  51.     shortarg    parse decimal short integer argument
  52.     stabarg        parse string table argument
  53.     strarg        parse string argument
  54.  
  55. interactive parsing:
  56.     getbool        prompt user a yes/no question
  57.     getchr        prompt user to select a character
  58.     getdouble    prompt user for double
  59.     getfloat    prompt user for float
  60.     gethex        prompt user for hexadecimal integer
  61.     getint        prompt user for decimal integer
  62.     getlong        prompt user for decimal long integer
  63.     getoct        prompt user for octal integer
  64.     getsearch    prompt user for "best" string table entry
  65.     getshort    prompt user for decimal short integer
  66.     getstab        prompt user for string table entry
  67.     getstr        prompt user for string
  68.  
  69. date and time conversion:
  70.     fdate        return formated date string
  71.     gtime        return time_t from struct tm
  72.     parsedate    parse date string
  73.  
  74. kernel support:
  75.     vmnlist        quick kernel nlist routine
  76.  
  77. path searching:
  78.     searchp        search path for file
  79.     fopenp        search path and fopen file
  80.     openp        search path and open file
  81.     fwantread    attempt to fopen file along path for input
  82.     fwantwrite    attempt to fopen file along path for output
  83.     wantread    attempt to open file along path for input
  84.     wantwrite    attempt to open file along path for output
  85.  
  86. password file matching:
  87.     getpwwho    lookup user using liberal matching
  88.     getpwambig    return ambiguous matches from getpwwho
  89.  
  90. file moving/copying:
  91.     movefile    change name of file
  92.     ffilecopy    very fast buffered file copy
  93.     filecopy    very fast file copy
  94.  
  95. random utilities:
  96.     bsearch        binary search ala qsort
  97.     ci        command interface
  98.     del        interrupt handler
  99.     dfork        "double" fork
  100.     editor        invoke preferred editor for user
  101.     errmsg        return error message string
  102.     expand        expand wildcard filename pattern
  103.     fgetpass    read password from file or terminal
  104.     gethostattr    get attributes of current host
  105.     getname        get name from user-id
  106.     putenv        add variable to environment
  107.     quit        exit program with error message
  108.     setpath        "smart" path modification interface
  109.