home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft_Programmers_Library.7z / MPL / msc / mscref.txt < prev    next >
Encoding:
Text File  |  2013-11-08  |  764.0 KB  |  21,081 lines

  1.  Microsoft  C - REFERENCE
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  ────────────────────────────────────────────────────────────────────────────
  11.                          Microsoft (R) C - REFERENCE
  12.  
  13.                                  VERSION 6.0
  14.  ────────────────────────────────────────────────────────────────────────────
  15.  
  16.  
  17.                             MICROSOFT CORPORATION
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  Information in this document is subject to change without notice and does
  27.  not represent a commitment on the part of Microsoft Corporation. The
  28.  software described in this document is furnished under a license agreement
  29.  or nondisclosure agreement. The software may be used or copied only in
  30.  accordance with the terms of the agreement. It is against the law to copy
  31.  the software on any medium except as specifically allowed in the license or
  32.  nondisclosure agreement. No part of this manual may be reproduced or
  33.  transmitted in any form or by any means, electronic or mechanical, including
  34.  photocopying and recording, for any purpose without the express written
  35.  permission of Microsoft.
  36.  (C) Copyright Microsoft Corporation, 1989. All rights reserved.
  37.  
  38.  Simultaneously published in the U.S. and Canada.
  39.  
  40.  
  41.  Printed and bound in the United States of America.
  42.  
  43.  
  44.  Microsoft, MS, MS-DOS, XENIX, CodeView, and QuickC are
  45.  registered trademarks of Microsoft Corporation.
  46.  
  47.  IBM is a registered trademark of International Business
  48.  Machines Corporation.
  49.  
  50.  Intel is a registered trademark of Intel Corporation.
  51.  
  52.  Lotus is a registered trademark of Lotus Development
  53.  Corporation.
  54.  
  55.  Tandy is a registered trademark of Tandy Corporation.
  56.  
  57.  
  58.  
  59.  
  60.  Document No. LN0802a-600-R00-0989
  61.  
  62.  Part No. 06515
  63.  
  64.  10
  65.   9
  66.   8
  67.   7
  68.   6
  69.   5
  70.   4
  71.   3
  72.   2
  73.   1
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  Table of Contents
  82.  ────────────────────────────────────────────────────────────────────────────
  83.  
  84.  
  85.  
  86.  Introduction
  87.       About This Book
  88.       Document Conventions
  89.  
  90.  
  91.  PART I  Utilities
  92.  ────────────────────────────────────────────────────────────────────────────
  93.  
  94.              BIND
  95.              CL (Compiler)
  96.              CodeView
  97.              CVPACK
  98.              EXEHDR
  99.              EXP
  100.              HELPMAKE
  101.              ILINK (Incremental Linker)
  102.              LIB
  103.              LINK (Linker)
  104.              NMAKE
  105.              Programmer's WorkBench
  106.              QuickHelp
  107.              RM
  108.              UNDEL
  109.  
  110.  
  111.  PART II  Language Reference
  112.  ────────────────────────────────────────────────────────────────────────────
  113.  
  114.              Language Reference
  115.  
  116.  
  117.  PART III  Run-time Library Functions
  118.  ────────────────────────────────────────────────────────────────────────────
  119.  
  120.  
  121.  Routines by Category
  122.  
  123.              Buffer Manipulation
  124.              Character Classification and Conversion
  125.              Data Conversion
  126.              Directory Control
  127.              File Handling
  128.              Graphics
  129.              Input and Output
  130.              Internationalization
  131.              Math
  132.              Memory Allocation
  133.              Process and Environment Control
  134.              Searching and Sorting
  135.              String Manipulation
  136.              System Calls
  137.              Time
  138.              Variable-Length Argument Lists
  139.              abort
  140.              abs
  141.              access
  142.              acos
  143.              acosl
  144.              alloca
  145.              _arc
  146.              _arc_w
  147.              _arc_wxy
  148.              asctime
  149.              asin
  150.              asinl
  151.              assert
  152.              atan
  153.              atanl
  154.              atan2
  155.              atan2l
  156.              atexit
  157.              atof
  158.              atoi
  159.              atol
  160.              _atold
  161.              _bcalloc
  162.              bdos
  163.              _beginthread
  164.              _bexpand
  165.              _bfree
  166.              _bfreeseg
  167.              _bheapadd
  168.              _bheapchk
  169.              _bheapmin
  170.              _bheapseg
  171.              _bheapset
  172.              _bheapwalk
  173.              _bios_disk
  174.              _bios_equiplist
  175.              _bios_keybrd
  176.              _bios_memsize
  177.              _bios_printer
  178.              _bios_serialcom
  179.              _bios_timeofday
  180.              _bmalloc
  181.              _bmsize
  182.              _brealloc
  183.              bsearch
  184.              cabs
  185.              cabsl
  186.              calloc
  187.              ceil
  188.              ceill
  189.              _cexit
  190.              _c_exit
  191.              cgets
  192.              _chain_intr
  193.              chdir
  194.              _chdrive
  195.              chmod
  196.              chsize
  197.              _clear87
  198.              clearerr
  199.              _clearscreen
  200.              clock
  201.              close
  202.              _control87
  203.              cos
  204.              cosh
  205.              coshl
  206.              cosl
  207.              cprintf
  208.              cputs
  209.              creat
  210.              cscanf
  211.              ctime
  212.              cwait
  213.              dieeetomsbin
  214.              difftime
  215.              _disable
  216.              _displaycursor
  217.              div
  218.              dmsbintoieee
  219.              _dos_allocmem
  220.              _dos_close
  221.              _dos_creat
  222.              _dos_creatnew
  223.              dosexterr
  224.              _dos_findfirst
  225.              _dos_findnext
  226.              _dos_freemem
  227.              _dos_getdate
  228.              _dos_getdiskfree
  229.              _dos_getdrive
  230.              _dos_getfileattr
  231.              _dos_getftime
  232.              _dos_gettime
  233.              _dos_getvect
  234.              _dos_keep
  235.              _dos_open
  236.              _dos_read
  237.              _dos_setblock
  238.              _dos_setdate
  239.              _dos_setdrive
  240.              _dos_setfileattr
  241.              _dos_setftime
  242.              _dos_settime
  243.              _dos_setvect
  244.              _dos_write
  245.              dup
  246.              dup2
  247.              ecvt
  248.              _ellipse
  249.              _ellipse_w
  250.              _ellipse_wxy
  251.              _enable
  252.              _endthread
  253.              eof
  254.              execl
  255.              execle
  256.              execlp
  257.              execlpe
  258.              execv
  259.              execve
  260.              execvp
  261.              execvpe
  262.              exit
  263.              _exit
  264.              exp
  265.              _expand
  266.              expl
  267.              fabs
  268.              fabsl
  269.              _fcalloc
  270.              fclose
  271.              fcloseall
  272.              fcvt
  273.              fdopen
  274.              feof
  275.              ferror
  276.              _fexpand
  277.              fflush
  278.              _ffree
  279.              fgetc
  280.              fgetchar
  281.              fgetpos
  282.              fgets
  283.              _fheapchk
  284.              _fheapmin
  285.              _fheapset
  286.              _fheapwalk
  287.              fieeetomsbin
  288.              filelength
  289.              fileno
  290.              _floodfill
  291.              _floodfill_w
  292.              floor
  293.              floorl
  294.              flushall
  295.              _fmalloc
  296.              _fmemccpy
  297.              _fmemchr
  298.              _fmemcmp
  299.              _fmemcpy
  300.              _fmemicmp
  301.              _fmemmove
  302.              _fmemset
  303.              fmod
  304.              fmodl
  305.              fmsbintoieee
  306.              _fmsize
  307.              fopen
  308.              FP_OFF
  309.              _fpreset
  310.              fprintf
  311.              FP_SEG
  312.              fputc
  313.              fputchar
  314.              fputs
  315.              fread
  316.              _frealloc
  317.              free
  318.              _freect
  319.              freopen
  320.              frexp
  321.              frexpl
  322.              fscanf
  323.              fseek
  324.              fsetpos
  325.              _fsopen
  326.              fstat
  327.              _fstrcat
  328.              _fstrchr
  329.              _fstrcmp
  330.              _fstrcpy
  331.              _fstrcspn
  332.              _fstrdup
  333.              _fstricmp
  334.              _fstrlen
  335.              _fstrlwr
  336.              _fstrncat
  337.              _fstrncmp
  338.              _fstrncpy
  339.              _fstrnicmp
  340.              _fstrnset
  341.              _fstrpbrk
  342.              _fstrrchr
  343.              _fstrrev
  344.              _fstrset
  345.              _fstrspn
  346.              _fstrstr
  347.              _fstrtok
  348.              _fstrupr
  349.              ftell
  350.              ftime
  351.              _fullpath
  352.              fwrite
  353.              gcvt
  354.              _getactivepage
  355.              _getarcinfo
  356.              _getbkcolor
  357.              getc
  358.              getch
  359.              getchar
  360.              getche
  361.              _getcolor
  362.              _getcurrentposition
  363.              _getcurrentposition_w
  364.              getcwd
  365.              _getdcwd
  366.              _getdrive
  367.              getenv
  368.              _getfillmask
  369.              _getfontinfo
  370.              _getgtextextent
  371.              _getgtextvector
  372.              _getimage
  373.              _getimage_w
  374.              _getimage_wxy
  375.              _getlinestyle
  376.              _getphyscoord
  377.              getpid
  378.              _getpixel
  379.              _getpixel_w
  380.              gets
  381.              _gettextcolor
  382.              _gettextcursor
  383.              _gettextposition
  384.              _gettextwindow
  385.              _getvideoconfig
  386.              _getviewcoord
  387.              _getviewcoord_w
  388.              _getviewcoord_wxy
  389.              _getvisualpage
  390.              getw
  391.              _getwindowcoord
  392.              _getwritemode
  393.              gmtime
  394.              _grstatus
  395.              halloc
  396.              _harderr
  397.              _hardresume
  398.              _hardretn
  399.              _heapadd
  400.              _heapchk
  401.              _heapmin
  402.              _heapset
  403.              _heapwalk
  404.              hfree
  405.              hypot
  406.              hypotl
  407.              _imagesize
  408.              _imagesize_w
  409.              _imagesize_wxy
  410.              inp
  411.              inpw
  412.              intdos
  413.              intdosx
  414.              int86
  415.              int86x
  416.              isalnum
  417.              isalpha
  418.              isascii
  419.              isatty
  420.              iscntrl
  421.              isdigit
  422.              isgraph
  423.              islower
  424.              isprint
  425.              ispunct
  426.              isspace
  427.              isupper
  428.              isxdigit
  429.              itoa
  430.              jn
  431.              _jnl
  432.              j1
  433.              _j1l
  434.              j0
  435.              _j0l
  436.              kbhit
  437.              labs
  438.              ldexp
  439.              ldexpl
  440.              ldiv
  441.              lfind
  442.              _lineto
  443.              _lineto_w
  444.              localeconv
  445.              localtime
  446.              locking
  447.              log
  448.              logl
  449.              log10
  450.              log10l
  451.              longjmp
  452.              _lrotl
  453.              _lrotr
  454.              lsearch
  455.              lseek
  456.              ltoa
  457.              _makepath
  458.              malloc
  459.              matherr
  460.              _matherrl
  461.              max
  462.              _memavl
  463.              memccpy
  464.              memchr
  465.              memcmp
  466.              memcpy
  467.              memicmp
  468.              _memmax
  469.              memmove
  470.              memset
  471.              min
  472.              mkdir
  473.              mktemp
  474.              mktime
  475.              modf
  476.              modfl
  477.              movedata
  478.              _moveto
  479.              _moveto_w
  480.              _msize
  481.              _ncalloc
  482.              _nexpand
  483.              _nfree
  484.              _nheapchk
  485.              _nheapmin
  486.              _nheapset
  487.              _nheapwalk
  488.              _nmalloc
  489.              _nmsize
  490.              _nrealloc
  491.              _nstrdup
  492.              onexit
  493.              open
  494.              _outgtext
  495.              _outmem
  496.              outp
  497.              outpw
  498.              _outtext
  499.              _pclose
  500.              perror
  501.              _pg_analyzechart
  502.              _pg_analyzechartms
  503.              _pg_analyzepie
  504.              _pg_analyzescatter
  505.              _pg_analyzescatterms
  506.              _pg_chart
  507.              _pg_chartms
  508.              _pg_chartpie
  509.              _pg_chartscatter
  510.              _pg_chartscatterms
  511.              _pg_defaultchart
  512.              _pg_getchardef
  513.              _pg_getpalette
  514.              _pg_getstyleset
  515.              _pg_hlabelchart
  516.              _pg_initchart
  517.              _pg_resetpalette
  518.              _pg_resetstyleset
  519.              _pg_setchardef
  520.              _pg_setpalette
  521.              _pg_setstyleset
  522.              _pg_vlabelchart
  523.              _pie
  524.              _pie_w
  525.              _pie_wxy
  526.              _pipe
  527.              _polygon
  528.              _polygon_w
  529.              _polygon_wxy
  530.              _popen
  531.              pow
  532.              powl
  533.              printf
  534.              putc
  535.              putch
  536.              putchar
  537.              putenv
  538.              _putimage
  539.              _putimage_w
  540.              puts
  541.              putw
  542.              qsort
  543.              raise
  544.              rand
  545.              read
  546.              realloc
  547.              _rectangle
  548.              _rectangle_w
  549.              _rectangle_wxy
  550.              _registerfonts
  551.              _remapallpalette
  552.              _remappalette
  553.              remove
  554.              rename
  555.              rewind
  556.              rmdir
  557.              rmtmp
  558.              _rotl
  559.              _rotr
  560.              scanf
  561.              _scrolltextwindow
  562.              _searchenv
  563.              segread
  564.              _selectpalette
  565.              _setactivepage
  566.              _setbkcolor
  567.              setbuf
  568.              _setcliprgn
  569.              _setcolor
  570.              _setfillmask
  571.              _setfont
  572.              _setgtextvector
  573.              setjmp
  574.              _setlinestyle
  575.              setlocale
  576.              setmode
  577.              _setpixel
  578.              _setpixel_w
  579.              _settextcolor
  580.              _settextcursor
  581.              _settextposition
  582.              _settextrows
  583.              _settextwindow
  584.              setvbuf
  585.              _setvideomode
  586.              _setvideomoderows
  587.              _setvieworg
  588.              _setviewport
  589.              _setvisualpage
  590.              _setwindow
  591.              _setwritemode
  592.              signal
  593.              sin
  594.              sinh
  595.              sinhl
  596.              sinl
  597.              sopen
  598.              spawnl
  599.              spawnle
  600.              spawnlp
  601.              spawnlpe
  602.              spawnv
  603.              spawnve
  604.              spawnvp
  605.              spawnvpe
  606.              _splitpath
  607.              sprintf
  608.              sqrt
  609.              sqrtl
  610.              srand
  611.              sscanf
  612.              stackavail
  613.              stat
  614.              _status87
  615.              strcat
  616.              strchr
  617.              strcmp
  618.              strcoll
  619.              strcpy
  620.              strcspn
  621.              _strdate
  622.              strdup
  623.              strerror
  624.              _strerror
  625.              strftime
  626.              stricmp
  627.              strlen
  628.              strlwr
  629.              strncat
  630.              strncmp
  631.              strncpy
  632.              strnicmp
  633.              strnset
  634.              strpbrk
  635.              strrchr
  636.              strrev
  637.              strset
  638.              strspn
  639.              strstr
  640.              _strtime
  641.              strtod
  642.              strtok
  643.              strtol
  644.              _strtold
  645.              strtoul
  646.              strupr
  647.              strxfrm
  648.              swab
  649.              system
  650.              tan
  651.              tanh
  652.              tanhl
  653.              tanl
  654.              tell
  655.              tempnam
  656.              time
  657.              tmpfile
  658.              tmpnam
  659.              toascii
  660.              tolower
  661.              _tolower
  662.              toupper
  663.              _toupper
  664.              tzset
  665.              ultoa
  666.              umask
  667.              ungetc
  668.              ungetch
  669.              unlink
  670.              _unregisterfonts
  671.              utime
  672.              va_arg
  673.              va_end
  674.              va_start
  675.              vfprintf
  676.              vprintf
  677.              vsprintf
  678.              wait
  679.              _wrapon
  680.              write
  681.              yn
  682.              _ynl
  683.              y1
  684.              _y1l
  685.              y0
  686.              _y0l
  687.  
  688.  Appendix A  printf/scanf Format Specifiers
  689.  
  690.  
  691.  Appendix B  Compiler Limits and Numerical Ranges
  692.  
  693.              Compiler Limits
  694.              Numerical Ranges
  695.              Numerical Values Defined in FLOAT.H
  696.  
  697.  
  698.  Introduction
  699.  ────────────────────────────────────────────────────────────────────────────
  700.  
  701.  The Microsoft(R) C Reference contains essential information about the
  702.  language, run-time library, and utility programs that comprise version 6.0
  703.  of the Microsoft C Professional Development System. This book is aimed at
  704.  the experienced programmer who needs a particular fact─the meaning of an
  705.  option, the syntax of a pragma, the arguments to a library function. Much of
  706.  the information is in lists and tables, organized to help you find it at a
  707.  glance.
  708.  
  709.  The C Reference is designed to complement the other Microsoft C
  710.  documentation, including Installing and Using the Professional Development
  711.  System,  Advanced Programming Techniques, and the Advisor (on-line help).
  712.  For example, while Installing and Using introduces you to Microsoft C and
  713.  teaches you how to use the Programmer's WorkBench (PWB), the C Reference
  714.  assumes that you are already familiar with using PWB. Thus, it lists all the
  715.  functions and keystrokes, both alphabetically and by use, as well as return
  716.  values and editor switches─but it does not teach you how to use them. You'll
  717.  find a discussion about how to optimize C programs to best advantage in
  718.  Advanced Programming Techniques. In this C Reference you'll find a complete
  719.  list of all the compiler options, including those for optimization, and a
  720.  short description of what each one does─but not which is best in a
  721.  particular situation.
  722.  
  723.  
  724.  About This Book
  725.  
  726.  The parts of this book and what they contain are discussed below.
  727.  
  728.  
  729.  Utilities
  730.  
  731.  Part 1 of the Microsoft C Reference summarizes the utility programs included
  732.  with the Microsoft C Professional Development System. The utilities are
  733.  listed alphabetically. A brief description and the syntax appear at the
  734.  beginning of each utility's description, followed by command-line options.
  735.  The description may also include other useful information. For example, the
  736.  coverage of LINK lists module-definition file statements used in Windows(tm)
  737.  and OS/2 applications; the pages on the CodeView(R) debugger list dialog
  738.  commands as well as size and format specifiers.
  739.  
  740.  
  741.  Language Reference
  742.  
  743.  Part 2 includes the basic elements of the C language: it lists keywords and
  744.  escape sequences, and gives the syntax and a short explanation of
  745.  statements, preprocessor directives, and pragmas. It also provides tables of
  746.  information on operators and data type sizes.
  747.  
  748.  
  749.  Run-Time Library Functions
  750.  
  751.  The Microsoft C libraries contain over 500 functions. Part 3 of this book
  752.  first lists the functions by category. It then provides an alphabetical
  753.  overview of each function, listing the function prototype, the include file,
  754.  the parameter list, a brief description, and compatibility.
  755.  
  756.  
  757.  Appendixes
  758.  
  759.  The appendixes contain various useful tables, such as one on printf and
  760.  scanf formatting codes. They also list compiler limits and program limits at
  761.  run time, the data ranges defined in LIMITS.H, and the numerical values
  762.  defined in FLOAT.H. Finally, there are numeric and ASCII conversion tables.
  763.  
  764.  
  765.  ────────────────────────────────────────────────────────────────────────────
  766.  NOTE
  767.  
  768.  The pages that follow use the term "OS/2" to refer to the OS/2
  769.  systems─Microsoft Operating System/2 (MS(R) OS/2) and IBM(R) OS/2.
  770.  Similarly, the term "DOS" refers to both the MS-DOS(R) and IBM Personal
  771.  Computer DOS operating systems. The name of a specific operating system is
  772.  used when it is necessary to note features that are unique to the system.
  773.  ────────────────────────────────────────────────────────────────────────────
  774.  
  775.  
  776.  Document Conventions
  777.  
  778.  This book uses the following document conventions :
  779.  
  780.  Example                           Description
  781.  ────────────────────────────────────────────────────────────────────────────
  782.  STDIO.H                           Uppercase letters indicate file names,
  783.                                    segment names, registers, and terms used
  784.                                    at the
  785.                                    operating-system command level.
  786.  
  787.  _far                              Boldface letters indicate C keywords,
  788.                                    operators,
  789.                                    language-specific characters, and
  790.                                    library routines. Within discussions of
  791.                                    syntax, bold type indicates that the
  792.                                    text must be entered exactly as shown.
  793.  
  794.  expression                        Words in italics indicate placeholders
  795.                                    for information you must supply, such as
  796.                                    a file name. Italics are also
  797.                                    occasionally used for emphasis in the
  798.                                    text.
  799.  
  800.  «option»                          Items inside double square brackets are
  801.                                    optional.
  802.  
  803.  #pragma pack {1|2}                Braces and a vertical bar indicate a
  804.                                    choice among two or more items. You must
  805.                                    choose one of these items unless double
  806.                                    square brackets surround the braces.
  807.  
  808.  #include <io.h>                   This font is used for examples, user
  809.                                    input, program output, and error
  810.                                    messages in text.
  811.  
  812.  CL options «files...»             Three dots following an item indicate
  813.                                    that more items having the same form may
  814.                                    appear.
  815.  
  816.  while()                           A column of three dots tells you that
  817.  {                                 part of the program has been
  818.     .                              intentionally omitted.
  819.     .
  820.     .
  821.  }
  822.  
  823.  CTRL+ENTER                        Small capital letters are used for the
  824.                                    names of keys on the keyboard. When you
  825.                                    see a plus sign (+) between two key
  826.                                    names, you should hold down the first
  827.                                    key while pressing the second.
  828.  
  829.                                    The carriage-return key, sometimes
  830.                                    marked as a bent arrow on the keyboard,
  831.                                    is called ENTER.
  832.  
  833.                                    The cursor-movement keys are called the
  834.                                    arrow keys. Individual keys are referred
  835.                                    to by their direction (LEFT, UP) or by
  836.                                    the name on the key (PGUP).
  837.  
  838.  "argument"                        Quotation marks enclose a new term the
  839.                                    first time it is defined in text.
  840.  
  841.  "C string"                        Some C constructs, such as strings,
  842.                                    require quotation marks. Quotation marks
  843.                                    required by the language have the form "
  844.                                    " and ' ' rather than " " and ' '.
  845.  
  846.  Color Graphics                    The first time an acronym is used, it is
  847.  Adapter (CGA)                     often
  848.                                    spelled out.
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  PART I  Utilities
  856.  ────────────────────────────────────────────────────────────────────────────
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  BIND
  863.  ────────────────────────────────────────────────────────────────────────────
  864.  
  865.  
  866.  Summary
  867.  
  868.  The BIND utility converts protected-mode programs that use Family API
  869.  functions to access system services, allowing them to run in both real mode
  870.  and protected mode.
  871.  
  872.  
  873.  Syntax
  874.  
  875.    BIND infile «implibs» «linklibs» «/O outfile» «/N@file» «/N functions»
  876.    «/Mmapfile»
  877.  
  878.  In the syntax above, infile contains the name of the OS/2 application,
  879.  implibs contains the name of one or more import libraries, and linklibs
  880.  contains the name of one or more standard libraries and object files.
  881.  
  882.  
  883.  Options
  884.  
  885.  /HELP                             Provides on-line help for BIND. First
  886.                                    BIND attempts to execute the QuickHelp
  887.                                    program, QH.EXE. If QuickHelp or its
  888.                                    database is unavailable, the /HELP
  889.                                    option lists BIND syntax and options to
  890.                                    the standard output.
  891.  
  892.  /M«AP» mapfile                    Causes a link map to be generated to
  893.                                    mapfile for the real mode environment of
  894.                                    the executable file.
  895.  
  896.  /N«AMES» functions                Allows the listing of functions
  897.                                    supported in protected mode only. Use
  898.                                    with a list of functions or a file
  899.                                    specification preceded by @.
  900.  
  901.  /NOLOGO                           Suppresses display of the sign-on banner.
  902.  
  903.  /O«UTFILE» outfile                Specifies the name for the bound
  904.                                    application, outfile.
  905.  
  906.  /?                                Displays the syntax of the BIND utility.
  907.  
  908.  
  909.  CL (Compiler)
  910.  ────────────────────────────────────────────────────────────────────────────
  911.  
  912.  
  913.  Summary
  914.  
  915.  The CL utility compiles and links one or more C source files.
  916.  
  917.  
  918.  Syntax
  919.  
  920.    CL «options » « filename» ... «libraries link-options»
  921.  
  922.  
  923.  Options
  924.  
  925.  /A {T|S|M|C|L|H}                  Selects one of these standard memory
  926.                                    models:
  927.  
  928.                                    Option      Comments
  929.  ────────────────────────────────────────────────────────────────────────────
  930.                                    /AT         Tiny memory model. Code and
  931.                                                data are limited to 64K
  932.                                                total. Must link with
  933.                                                CRTCOM.LIB. Creates a .COM
  934.                                                file for real mode. (Same as
  935.                                                /Asnd.)
  936.  
  937.                                    /AS         Small memory model. Code and
  938.                                                data are limited to 64K each.
  939.                                                (Same as  /Asnd.)
  940.  
  941.                                    /AM         Medium memory model. Data is
  942.                                                limited to 64K. (Same as
  943.                                                /Alnd.)
  944.  
  945.                                    /AC         Compact memory model. Code
  946.                                                is limited to 64K. (Same as
  947.                                                /Asfd.)
  948.  
  949.                                    /AL         Large memory model. No
  950.                                                limits on code or data.
  951.                                                (Same as  /Alfd.)
  952.  
  953.                                    /AH         Huge memory model. Same as
  954.                                                large model, but individual
  955.                                                arrays can exceed 64K. (Same
  956.                                                as  /Alhd.)
  957.  
  958.  /Astring                          Sets up a customized memory model. The
  959.                                    string consists of three characters in
  960.                                    any order, indicating code and data
  961.                                    pointer size and segment setup.
  962.  
  963. ╓┌───────────────┌───────────┌───────────────────────────────────────────────╖
  964.  Group           Code        Description
  965.  ────────────────────────────────────────────────────────────────────────────
  966.  Code pointers   s           Small (Near)
  967.                  l           Large (Far)
  968.  Group           Code        Description
  969.  ────────────────────────────────────────────────────────────────────────────
  970.                 l           Large (Far)
  971.  
  972.  Data pointers   n           Near
  973.                  f           Far
  974.                  h           Huge
  975.  
  976.  Segment setup   d           SS == DS
  977.                  u           SS != DS; DS loaded for each function entry
  978.                  w           SS != DS; DS not loaded at function entry
  979.  
  980.  ────────────────────────────────────────────────────────────────────────────
  981.  
  982.  
  983.  
  984.  /B1 «path»                        Invokes an alternative preprocessor
  985.                                    called C1L.EXE. Use this option to
  986.                                    compile programs that generate the
  987.                                    message
  988.                                    the compiler is out of near heap. The
  989.                                    drive and path where C1L.EXE resides are
  990.                                    optionally specified in path.
  991.  
  992.  /B2 «path»                        Invokes an alternative compiler pass two
  993.                                    called C2L.EXE.
  994.  
  995.  /B3 «path»                        Invokes an alternative compiler pass
  996.                                    three called C3L.EXE.
  997.  
  998.  /C                                Preserves comments when preprocessing a
  999.                                    file; use only with /E, /P, or /EP.
  1000.  
  1001.  /c                                Compiles without linking. Creates an
  1002.                                    object file but not an executable file.
  1003.  
  1004.  /D id « = «value» »               Defines the symbolic constant id to the
  1005.                                    preprocessor. If value is defined, the
  1006.                                    value of id is value. If the equal sign
  1007.                                    is given without value, the value of id
  1008.                                    is empty. If id is given without the
  1009.                                    equal sign, the value of id is 1.
  1010.  
  1011.  /E                                Preprocesses the source file, copying
  1012.                                    the result to the standard output and
  1013.                                    inserting #line directives.
  1014.  
  1015.  /EP                               Preprocesses the source file, copying
  1016.                                    the result to the standard output
  1017.                                    without #line directives.
  1018.  
  1019.  /F hexnum                         Sets stack size to hexnum bytes (this is
  1020.                                    the same as
  1021.                                    /link /STACK:number). The value must be
  1022.                                    expressed in
  1023.                                    hexadecimal notation.
  1024.  
  1025.  /Fa «listfile»                    Produces an assembly listing. If
  1026.                                    listfile is unspecified, /Fa
  1027.                                    defaults to sourcefilename.ASM. Not
  1028.                                    available with the /qc
  1029.                                    option.
  1030.  
  1031.  /Fbbound-exe                      Creates a bound executable file. Use
  1032.                                    only with /Lp.
  1033.  
  1034.  /Fc «listfile»                    Produces a combined source-assembly code
  1035.                                    listing. If listfile is unspecified, /Fc
  1036.                                    defaults to sourcefilename.COD. Not
  1037.                                    available with the /qc option.
  1038.  
  1039.  /Fe exefile                       Names the executable file.
  1040.  
  1041.  /Fl «listfile»                    Generates an object-code listing. If
  1042.                                    listfile is not given, /Fl
  1043.                                    defaults to sourcefilename.COD. Not
  1044.                                    available with the /qc
  1045.                                    option.
  1046.  
  1047.  /Fm «mapfile»                     Creates a linker map file. If mapfile is
  1048.                                    not given, /Fm defaults to
  1049.                                    first-sourcefilename.MAP.
  1050.  
  1051.  /Fo objfile                       Names the object file.
  1052.  
  1053.  /FPa                              Generates floating-point calls and
  1054.                                    selects the alternate math library. Not
  1055.                                    available with the /qc option.
  1056.  
  1057.  /FPc                              Generates floating-point calls and
  1058.                                    selects the emulator library (which uses
  1059.                                    an 80x87 coprocessor if one is present).
  1060.                                    Not available with the /qc option.
  1061.  
  1062.  /FPc87                            Generates floating-point calls and
  1063.                                    selects an 80x87 library (which requires
  1064.                                    an 80x87 coprocessor at run time). Not
  1065.                                    available with the /qc option.
  1066.  
  1067.  /FPi                              Generates in-line 80x87 instructions and
  1068.                                    selects an emulator library (uses an 80x
  1069.                                    87 coprocessor if one is present). This
  1070.                                    is the default /FP option.
  1071.  
  1072.  /FPi87                            Generates in-line 80x87 instructions and
  1073.                                    selects an 80x87 library (which requires
  1074.                                    an 80x87 coprocessor at run time).
  1075.  
  1076.  /Fr «browsefile»                  Generates a standard PWB Source Browser
  1077.                                    database. If
  1078.                                     browsefile is unspecified, /Fr defaults
  1079.                                    to basename.SBR.
  1080.  
  1081.  /FR «browsefile»                  Generates an extended Source Browser
  1082.                                    database. If browsefile is unspecified,
  1083.                                    /FR defaults to basename.SBR.
  1084.  
  1085.  /Fs «listfile»                    Produces a source listing. If listfile
  1086.                                    is unspecified, /Fs defaults to
  1087.                                    sourcefilename.LST. Not available with
  1088.                                    the /qc option.
  1089.  
  1090.  /Fx«xreffile»                     Specifies a name for the Microsoft Macro
  1091.                                    Assembler (MASM) cross-reference file.
  1092.                                    If xreffile is unspecified, /Fx
  1093.                                    defaults to sourcefilename.CRF.
  1094.  
  1095.  /G0                               Generates 8086/8088 instructions. This
  1096.                                    is the default /G
  1097.                                    option.
  1098.  
  1099.  /G1                               Generates 80186/80188 instructions.
  1100.  
  1101.  /G2                               Generates 80286 instructions.
  1102.  
  1103.  /Gc                               Specifies use of FORTRAN- or
  1104.                                    Pascal-style function calling and naming
  1105.                                    conventions.
  1106.  
  1107.  /Gd                               Specifies standard (default) C calling
  1108.                                    conventions.
  1109.  
  1110.  /Ge                               Enables calls to the stack-checking
  1111.                                    routine (default).
  1112.  
  1113.  /Gi                               Compiles incrementally (when used in
  1114.                                    conjunction with the /qc option); only
  1115.                                    functions that have changed are
  1116.                                    recompiled. Without /qc, /Gi
  1117.                                    incrementally links by padding object
  1118.                                    files. Implies /Li.
  1119.  
  1120.  /Gm                               Stores strings in the constant (CONST)
  1121.                                    segment. Not available with the /qc
  1122.                                    option.
  1123.  
  1124.  /Gr                               Enables the new _fastcall function to
  1125.                                    call conventions for eligible functions.
  1126.                                    When possible, values are passed in
  1127.                                    registers instead of on the stack.
  1128.  
  1129.  /Gs                               Suppresses generation of calls to the
  1130.                                    stack-checking routine.
  1131.  
  1132.  /Gt«number»                       Places data items greater than or equal
  1133.                                    to number bytes in a new segment.
  1134.                                    Default is 256 if no number is specified.
  1135.  
  1136.  /Gw                               Generates entry/exit code sequences
  1137.                                    suitable for use in
  1138.                                    Microsoft Windows(tm) applications.
  1139.  
  1140.  /GW                               Same as /Gw, but generates more
  1141.                                    efficient entry sequences. Used for code
  1142.                                    other than user callback functions.
  1143.  
  1144.  /H number                         Restricts external names to number
  1145.                                    significant characters. The default is
  1146.                                    31 characters. Not available with the
  1147.                                    /qc option.
  1148.  
  1149.  /HELP                             Calls the QuickHelp utility. If the
  1150.                                    QuickHelp program is not available, CL
  1151.                                    displays the most commonly used options
  1152.                                    to the standard output. This option is
  1153.                                    not case sensitive.
  1154.  
  1155.  /I directory                      Adds directory to the beginning of the
  1156.                                    list of directories to be searched for
  1157.                                    include files.
  1158.  
  1159.  /J                                Changes the default for char type from
  1160.                                    signed to unsigned.
  1161.  
  1162.  /Lc                               Causes the linker to create a
  1163.                                    compatibility mode executable file. Same
  1164.                                    as /Lr.
  1165.  
  1166.  /Li«number»                       Invokes the incremental linker ILINK
  1167.                                    instead of the standard linker LINK.
  1168.                                    ILINK runs faster than LINK while
  1169.                                    creating larger executable files. The
  1170.                                    optional number specifies the byte
  1171.                                    boundary to which the linker pads all
  1172.                                    near functions.
  1173.  
  1174.  /Lp                               Causes the linker to create a
  1175.                                    protected-mode executable file.
  1176.  
  1177.  /Lr                               Causes the linker to create a real-mode
  1178.                                    executable file.
  1179.  
  1180.  /link link-libinfo                Passes linker options or library names
  1181.                                    in link-libinfo to LINK.
  1182.  
  1183.  /MAMASM_option                    Passes the specified option to the
  1184.                                    Microsoft Macro Assembler (MASM). MASM
  1185.                                    is automatically invoked for files
  1186.                                    listed on the command line with the
  1187.                                    extension .ASM.
  1188.  
  1189.  /MD                               Creates a dynamically linked C run-time
  1190.                                    library (OS/2 only). Equivalent to /ALw
  1191.                                    /FPi /G2 /DDLL /DMT. No library search
  1192.                                    record.
  1193.  
  1194.  /ML                               Statically links the C run-time library
  1195.                                    as part of a dynamic-link library (OS/2
  1196.                                    only). Equivalent to /ALw /FPa /G2 /DMT.
  1197.                                    Library search record is changed to
  1198.                                    LLIBCDLL.LIB.
  1199.  
  1200.  /MT                               Enables support for multithread programs
  1201.                                    (OS/2 only). Equivalent to /ALw /FPi /G2
  1202.                                    /DMT. Library search record is changed
  1203.                                    to LLIBCMT.LIB.
  1204.  
  1205.  /NDdataseg                        Sets the data segment name.
  1206.  
  1207.  /NMmodule                         Sets the module name.
  1208.  
  1209.  /nologo                           Suppresses display of the sign-on banner.
  1210.  
  1211.  /NTtextseg                        Sets the code segment name.
  1212.  
  1213.  /O«opt_codes»                     Controls optimization. When no codes are
  1214.                                    included, default optimization is
  1215.                                    enabled. The optional opt_codes argument
  1216.                                    may contain one or more of the following
  1217.                                    characters:
  1218.  
  1219.                                    Code        Description
  1220.  ────────────────────────────────────────────────────────────────────────────
  1221.                                    a           Assumes no aliasing
  1222.  
  1223.                                    c           Enables default (block-level)
  1224.                                                local common expressions
  1225.  
  1226.                                    d           Disables all optimizations
  1227.  
  1228.                                    e           Enables global register
  1229.                                                allocation
  1230.  
  1231.                                    g           Enables global optimizations
  1232.                                                and global common
  1233.                                                expressions
  1234.  
  1235.                                    i           Enables generation of
  1236.                                                intrinsic routines
  1237.  
  1238.                                    l           Enables loop optimizations
  1239.  
  1240.                                    n           Disables unsafe loop
  1241.                                                optimizations (default)
  1242.  
  1243.                                    p           Improves consistency in
  1244.                                                floating-point
  1245.                                                calculations
  1246.  
  1247.                                    r           Disables in-line returns
  1248.                                                from functions
  1249.  
  1250.                                    s           Favors smaller code size
  1251.  
  1252.                                    t           Favors faster execution
  1253.                                                speed (default)
  1254.  
  1255.                                    w           Assumes no aliases except
  1256.                                                across function calls (not
  1257.                                                available with the /qc
  1258.                                                option)
  1259.  
  1260.                                    x           Maximizes optimizations
  1261.                                                (equivalent to /Oecilgt/Gs)
  1262.  
  1263.                                    z           Enables maximum loop and
  1264.                                                global-register-allocation
  1265.                                                optimization
  1266.  
  1267.  /P                                Preprocesses the source file and sends
  1268.                                    output to a file
  1269.                                    having the base name of the source file
  1270.                                    and the extension .I
  1271.                                    (basename.I).
  1272.  
  1273.  /qc                               Invokes the quick compile option. The
  1274.                                    following options produce an error
  1275.                                    during a quick compile: /Fa, /Fc, /Fl,
  1276.                                    /FPa, /FPc, /FPc87, /Fs, /Gm, /H, /Ow,
  1277.                                    /Zc.
  1278.  
  1279.  /Sl linewidth                     Sets the line width of source listing in
  1280.                                    characters per line. Range is 79-132.
  1281.                                    Default is 79.
  1282.  
  1283.  /Sp pagelength                    Sets the page length of source listing
  1284.                                    in lines per page. Range is 15-255.
  1285.                                    Default is 63.
  1286.  
  1287.  /Ss subtitle                      Specifies subtitle for source listing.
  1288.  
  1289.  /St title                         Specifies title for source listing.
  1290.  
  1291.  /Ta asm_srcfile                   Specifies that asm_srcfile is to be
  1292.                                    treated as an assembler source file,
  1293.                                    whether or not it has an .ASM extension.
  1294.  
  1295.  /Tc c-srcfile                     Indicates that c-srcfile is a C source
  1296.                                    file, whether or not it has a .C
  1297.                                    extension.
  1298.  
  1299.  /u                                Removes (undefines) definitions of all
  1300.                                    predefined identifiers.
  1301.  
  1302.  /U identifier                     Removes the definition of the given
  1303.                                    predefined identifier.
  1304.  
  1305.  /V string                         Copies the version string to the object
  1306.                                    file.
  1307.  
  1308.  /w                                Suppresses compiler warning messages;
  1309.                                    same as /W0.
  1310.  
  1311.  /W{0 | 1 | 2 | 3 | 4}             Sets the output level for compiler
  1312.                                    warning messages. The default is 1.
  1313.  
  1314.  /WX                               Makes all warnings fatal; no object file
  1315.                                    is generated when a warning occurs.
  1316.  
  1317.  /X                                Ignores the list of "standard places" in
  1318.                                    the search for include files.
  1319.  
  1320.  /Za                               Enforces American National Standards
  1321.                                    Institute (ANSI)
  1322.                                    language compatibility, disabling
  1323.                                    extensions specific to
  1324.                                    Microsoft C.
  1325.  
  1326.  /Zc                               Causes functions declared as _pascal to
  1327.                                    be treated without regard to case. Not
  1328.                                    available with the /qc option.
  1329.  
  1330.  /Zd                               Generates line-number information
  1331.                                    required for the SYMDEB debugger.
  1332.  
  1333.  /Ze                               Enables extensions specific to Microsoft
  1334.                                    C. This is the default /Z option.
  1335.  
  1336.  /Zg                               Generates function prototypes from
  1337.                                    function definitions and writes
  1338.                                    declarations to standard output, without
  1339.                                    compiling the program.
  1340.  
  1341.  /Zi                               Generates symbolic information required
  1342.                                    by the Microsoft CodeView(R)
  1343.                                    window-oriented debugger.
  1344.  
  1345.  /Zl                               Suppresses emission of library search
  1346.                                    records in the object file.
  1347.  
  1348.  /Zp«{1 | 2 | 4}»                  Packs structure members on the specified
  1349.                                    byte boundary.
  1350.  
  1351.  /Zr                               Generates code that checks for null
  1352.                                    pointers and out-of-range far pointers
  1353.                                    (in the CL command, use only with /qc).
  1354.  
  1355.  /Zs sourcefiles                   Performs a syntax check only.
  1356.  
  1357.  
  1358.  CodeView
  1359.  ────────────────────────────────────────────────────────────────────────────
  1360.  
  1361.  
  1362.  Summary
  1363.  
  1364.  The Microsoft CodeView window-oriented debugger runs the compiled program
  1365.  while simultaneously displaying the program source code, program variables,
  1366.  memory locations, processor registers, and other pertinent information.
  1367.  
  1368.  
  1369.  Syntax
  1370.  
  1371.    CV «options» executablefile «arguments»
  1372.  
  1373.  To debug protected-mode programs, set IOPL = YES in your CONFIG.SYS file and
  1374.  use the following syntax:
  1375.  
  1376.    CVP «options» executablefile «arguments»
  1377.  
  1378.  
  1379.  Options
  1380.  
  1381.  /2                                Permits the use of two monitors
  1382.  
  1383.  /25                               Starts in 25-line mode
  1384.  
  1385.  /43                               Starts in EGA 43-line mode
  1386.  
  1387.  /50                               Starts in VGA 50-line mode
  1388.  
  1389.  /B                                Starts in black-and-white mode with CGA
  1390.                                    or EGA
  1391.  
  1392.  /Ccommands                        Executes commands on start up
  1393.  
  1394.  /D«buffersize»                    Enables disk overlays (DOS only)
  1395.  
  1396.  /E                                Enables Expanded Memory Support (EMS)
  1397.                                    (DOS only)
  1398.  
  1399.  /F                                Does not swap video pages between
  1400.                                    CodeView and the program you are
  1401.                                    debugging; exchanges debug and output
  1402.                                    screens by flipping between video pages
  1403.                                    (faster than /S)
  1404.  
  1405.  /Inumber                          Turns nonmaskable interrupts and
  1406.                                    8259-interrupt trapping on (/I1) or off
  1407.                                    (/I0)
  1408.  
  1409.  /K                                Disables installation of keyboard
  1410.                                    monitors for the program being debugged
  1411.  
  1412.  /L dynlib                         Enables CodeView to search OS/2
  1413.                                    dynamic-link libraries for symbolic
  1414.                                    information
  1415.  
  1416.  /M                                Disables CodeView support of the mouse
  1417.                                    (use this option when debugging an
  1418.                                    application that supports the mouse)
  1419.  
  1420.  /Nnumber                          /N0 tells CodeView to trap; /N1 tells it
  1421.                                    not to
  1422.  
  1423.  /O                                Enables debugging of multiple processes
  1424.                                    under OS/2 protected mode
  1425.  
  1426.  /R                                Enables 80386 debug registers (not
  1427.                                    available under OS/2)
  1428.  
  1429.  /S                                Starts with screen swapping (exchanges
  1430.                                    screens by changing buffers, primarily
  1431.                                    for use with graphics programs)
  1432.  
  1433.  /X                                Uses extended memory to increase
  1434.                                    debugging capacity (DOS only)
  1435.  
  1436.  
  1437.  CodeView Commands
  1438.  
  1439. ╓┌────────────────────────┌───────────────────────┌──────────────────────────╖
  1440.  Action                   Keyboard                Mouse
  1441.  ────────────────────────────────────────────────────────────────────────────
  1442.  Display help about the   F1                      Click Help menu
  1443.  selected topic
  1444.  
  1445.  Display contents of      SHIFT+F1                Click Help menu Contents
  1446.  help                                             command
  1447.  
  1448.  Go to next help screen   CTRL+F1                 ─
  1449.  
  1450.  Go to previous help      SHIFT+CTRL+F1           ─
  1451.  Action                   Keyboard                Mouse
  1452.  ────────────────────────────────────────────────────────────────────────────
  1453. Go to previous help      SHIFT+CTRL+F1           ─
  1454.  topic
  1455.  
  1456.  Go to previously viewed  ALT+F1                  Click Back button on help
  1457.  help screen                                      screen
  1458.  
  1459.  Toggle register window   F2                      Click View menu
  1460.                                                   Registers command
  1461.  
  1462.  Toggle                   F3                      Click Options menu Source
  1463.  source/assembly/mixed                            Window command
  1464.  modes
  1465.  
  1466.  Toggle memory window     SHIFT+F3                Click Options menu Memory
  1467.  formats                                          Window command
  1468.  
  1469.  Switch to output screen  F4                      Click View menu Output
  1470.                                                   command
  1471.  
  1472.  Action                   Keyboard                Mouse
  1473.  ────────────────────────────────────────────────────────────────────────────
  1474. 
  1475.  Close window             CTRL+F4                 Click button in upper
  1476.                                                   left corner of window
  1477.  
  1478.  Go to next Breakpoint    F5                      Click Left button on Go
  1479.  or to program end                                on
  1480.                                                   status line
  1481.  
  1482.  Switch to next window    F6                      Click desired window
  1483.  
  1484.  Switch to previous       SHIFT+F6                Click desired window
  1485.  window
  1486.  
  1487.  Execute to cursor        F7                      Click Right button at
  1488.                                                   location on status line
  1489.  
  1490.  Trace into procedure     F8                      Click Left button on
  1491.                                                   Trace
  1492.  
  1493.  Action                   Keyboard                Mouse
  1494.  ────────────────────────────────────────────────────────────────────────────
  1495. 
  1496.  Display previous         SHIFT+F8                ─
  1497.  command in history
  1498.  
  1499.  Change window size       CTRL+F8                 Click Left button on
  1500.                                                   window border and drag
  1501.  
  1502.  Toggle Breakpoint at     F9 at location          Double-click Left button
  1503.  line with cursor                                 at
  1504.                                                   location and drag
  1505.  
  1506.  Step over procedure      F10                     Click Left button on Step
  1507.  
  1508.  Display next command in  SHIFT+F10               ─
  1509.  history
  1510.  
  1511.  Maximize window          CTRL+F10                Click button in upper
  1512.                                                   right corner of window
  1513.  
  1514.  Action                   Keyboard                Mouse
  1515.  ────────────────────────────────────────────────────────────────────────────
  1516. 
  1517.  Change flag in register  Any printing character  Double-click Left button
  1518.  window                                           on flag
  1519.  
  1520.  Delete character at      DEL                     ─
  1521.  cursor
  1522.  
  1523.  Toggle insert and        INS                     ─
  1524.  overstrike modes
  1525.  
  1526.  Copy text into delete    CTRL+INS                Click Edit menu Copy
  1527.  buffer                                           command
  1528.  
  1529.  Paste text from delete   SHIFT+INS               Click Edit menu Paste
  1530.  buffer                                           command
  1531.  
  1532.  Move to next command     TAB                     Click Left button at
  1533.  (Command                                         location
  1534.  window only)
  1535.  Action                   Keyboard                Mouse
  1536.  ────────────────────────────────────────────────────────────────────────────
  1537. window only)
  1538.  
  1539.  Move to previous         SHIFT+TAB               Click Left button at
  1540.  command (Command                                 location
  1541.  window only)
  1542.  
  1543.  Find selected text       CTRL+\                  Click Search menu
  1544.                                                   Selected Text command
  1545.  
  1546.  Repeat last find         ALT+/                   Click Search menu Repeat
  1547.                                                   Find command
  1548.  
  1549.  Add Watch expression     CTRL+W                  Click Watch menu Add
  1550.                                                   Watch command
  1551.  
  1552.  Delete Watch expression  CTRL+U                  Click Watch menu Delete
  1553.                                                   Watch command
  1554.  
  1555.  Open QuickWatch window   SHIFT + F9              Click Watch window
  1556.  Action                   Keyboard                Mouse
  1557.  ────────────────────────────────────────────────────────────────────────────
  1558. Open QuickWatch window   SHIFT + F9              Click Watch window
  1559.  for a variable                                   QuickWatch command
  1560.  
  1561.  Scroll up one line in    CTRL+UP                 Click Left button on up
  1562.  window                                           arrow on scroll bar
  1563.  
  1564.  Scroll down one line in  CTRL+DOWN               Click Left button on down
  1565.  window                                           arrow on scroll bar
  1566.  
  1567.  Scroll up one page in    PGUP                    Click Left button above
  1568.  window                                           vertical elevator
  1569.  
  1570.  Scroll down one page in  PGDN                    Click Left button below
  1571.  window                                           vertical elevator
  1572.  
  1573.  Scroll window to the     CTRL+PGUP               Click Left button on left
  1574.  left
  1575.                                                   arrow or to left of
  1576.                                                   horizontal
  1577.  Action                   Keyboard                Mouse
  1578.  ────────────────────────────────────────────────────────────────────────────
  1579.                                                  horizontal
  1580.                                                   elevator
  1581.  
  1582.  Scroll window to the     CTRL+PGDN               Click Left button on
  1583.  right                                            right arrow or to right
  1584.                                                   of horizontal elevator
  1585.  
  1586.  Move cursor to           HOME                    Click Left button at
  1587.  beginning of line                                location
  1588.  
  1589.  Move cursor to end of    END                     Drag elevator to bottom
  1590.  line
  1591.  
  1592.  Scroll to top of file    CTRL+HOME               Drag vertical elevator to
  1593.                                                   top
  1594.  
  1595.  Scroll to end of file    CTRL+END                Drag elevator to bottom
  1596.  
  1597.  Move cursor one word     CTRL+LEFT/              Click Left button at
  1598.  Action                   Keyboard                Mouse
  1599.  ────────────────────────────────────────────────────────────────────────────
  1600. Move cursor one word     CTRL+LEFT/              Click Left button at
  1601.                           CTRL+RIGHT              location
  1602.  
  1603.  Move cursor one line     UP/DOWN                 Click Left button at
  1604.                                                   location
  1605.  
  1606.  ────────────────────────────────────────────────────────────────────────────
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  Dialog Commands
  1612.  
  1613. ╓┌────────────────────┌──────────────────────────────────────────┌───────────
  1614.  Name                 Syntax                                     Description
  1615.  ─────────────────────────────────────────────────────────────────────────────
  1616.  address              « «segment | register»: »offset            Identifies th
  1617.                       (type *) constant                          of an express
  1618.                                                                  various comma
  1619.  Name                 Syntax                                     Description
  1620.  ─────────────────────────────────────────────────────────────────────────────
  1621.                                                                 various comma
  1622.  
  1623.  Add Watch            W? expression«, format»                    Displays expr
  1624.                                                                  memory range
  1625.                                                                  Watch window
  1626.  
  1627.  Assemble             A «address»                                Assembles mne
  1628.                                                                  starting at a
  1629.  
  1630.  Breakpoint Clear     BC {list | * }                             Clears breakp
  1631.                                                                  list or in al
  1632.                                                                  breakpoints (
  1633.  
  1634.  Breakpoint           BD {list | * }                             Turns off bre
  1635.  Disable                                                         in list or in
  1636.                                                                  breakpoints (
  1637.  
  1638.  Breakpoint Enable    BE {list | * }                             Enables break
  1639.                                                                  list or in al
  1640.  Name                 Syntax                                     Description
  1641.  ─────────────────────────────────────────────────────────────────────────────
  1642.                                                                 list or in al
  1643.                                                                  breakpoints (
  1644.  
  1645.  Breakpoint List      BL                                         Lists breakpo
  1646.                                                                  the status of
  1647.  
  1648.  Breakpoint Set       BP «address» «=symbol«range» » | «?        Breaks execut
  1649.                       expression» «, passcount»                  address is re
  1650.                       «,"commands"»                              Breaks execut
  1651.                                                                  the value of
  1652.                                                                  changes; if a
  1653.                                                                  listed, the e
  1654.                                                                  is evaluated
  1655.                                                                  that address
  1656.  
  1657.                                                                  Breaks execut
  1658.                                                                  expression is
  1659.                                                                  address is li
  1660.                                                                  expression is
  1661.  Name                 Syntax                                     Description
  1662.  ─────────────────────────────────────────────────────────────────────────────
  1663.                                                                 expression is
  1664.                                                                  only at that
  1665.  
  1666.  Comment              *comment                                   Displays expl
  1667.                                                                  text
  1668.  
  1669.  Compare Memory       C range address                            Compares byte
  1670.                                                                  with bytes be
  1671.                                                                  address; disp
  1672.                                                                  mismatched pa
  1673.  
  1674.  Current              .                                          Displays the
  1675.  Location                                                        location
  1676.  
  1677.  Delay                :                                          Delays execut
  1678.                                                                  redirected co
  1679.                                                                  (may be repea
  1680.                                                                  longer delays
  1681.  
  1682.  Name                 Syntax                                     Description
  1683.  ─────────────────────────────────────────────────────────────────────────────
  1684. 
  1685.  Delete Watch         Y {number | *}                             Deletes (yank
  1686.                                                                  statements
  1687.  
  1688.  Display              ? expression«, format»                     Displays expr
  1689.  Expression                                                      format
  1690.  
  1691.  Dump                 D«type» «address | range»                  Dumps memory
  1692.                                                                  range in type
  1693.  
  1694.  Enter                E«type» address «list»                     Enters memory
  1695.                                                                  type format
  1696.  
  1697.  Examine              X«L|*|?«module!» «function.»               Displays spec
  1698.  Symbols              «symbol» «*» »                             symbols
  1699.  
  1700.  Execute              E                                          Executes in s
  1701.  
  1702.  Fill Memory          F range list                               Fills address
  1703.  Name                 Syntax                                     Description
  1704.  ─────────────────────────────────────────────────────────────────────────────
  1705. Fill Memory          F range list                               Fills address
  1706.                                                                  range with va
  1707.                                                                  list
  1708.  
  1709.  Go                   G «breakaddress»                           Executes to
  1710.                                                                  breakaddress
  1711.  
  1712.  List Watch           W                                          Lists current
  1713.                                                                  statements
  1714.  
  1715.  Move Memory          M range address                            Copies values
  1716.                                                                  memory block
  1717.  
  1718.  Options              O«option«+ | -» »                          Views or sets
  1719.                                                                  options, incl
  1720.                                                                  bytes coded (
  1721.                                                                  flip/swap (F)
  1722.                                                                  sensitivity (
  1723.                                                                  symbol addres
  1724.  Name                 Syntax                                     Description
  1725.  ─────────────────────────────────────────────────────────────────────────────
  1726.                                                                 symbol addres
  1727.                                                                  symbols (S),
  1728.                                                                  386 (3)
  1729.  
  1730.  Pause                "                                          Interrupts ex
  1731.                                                                  redirected co
  1732.                                                                  waits for key
  1733.  
  1734.  Port Input           I port                                     Reads and dis
  1735.                                                                  from port
  1736.  
  1737.  Port Output          O port byte                                Sends byte to
  1738.  
  1739.  Program Step         P «count»                                  Executes sour
  1740.                                                                  or instructio
  1741.                                                                  stepping over
  1742.                                                                  procedure, an
  1743.                                                                  interrupt cal
  1744.                                                                  repeats count
  1745.  Name                 Syntax                                     Description
  1746.  ─────────────────────────────────────────────────────────────────────────────
  1747.                                                                 repeats count
  1748.  
  1749.  Quick Watch          ?? symbol                                  Displays loca
  1750.                                                                  variables and
  1751.                                                                  data structur
  1752.                                                                  dialog box
  1753.  
  1754.  Quit                 Q                                          Exits and ret
  1755.                                                                  DOS
  1756.  
  1757.  Radix                N «radixnumber»                            Sets input ra
  1758.  
  1759.  Redirection          « « «T»>«>» » | < | =»devicename           Redirects inp
  1760.                                                                  output to or
  1761.                                                                  devicename
  1762.  
  1763.  Redraw               @                                     Redraws the screen
  1764.  
  1765.  Register             R «registername « «=»expression» »         Displays regi
  1766.  Name                 Syntax                                     Description
  1767.  ─────────────────────────────────────────────────────────────────────────────
  1768. Register             R «registername « «=»expression» »         Displays regi
  1769.                                                                  flags, or set
  1770.                                                                  registers and
  1771.  
  1772.  Restart              L «arguments»                              Restarts prog
  1773.  
  1774.  Screen               \ «time»                                   Exchanges the
  1775.  Exchange                                                        and output sc
  1776.  
  1777.  Search               / «regularexpression»                      Searches for
  1778.                                                                  expression
  1779.  
  1780.  Search Memory        S range list                               Searches rang
  1781.                                                                  values in lis
  1782.  
  1783.  Shell Escape         !«command»                                 Escapes to a
  1784.                                                                  OS/2 shell an
  1785.                                                                  command
  1786.  
  1787.  Name                 Syntax                                     Description
  1788.  ─────────────────────────────────────────────────────────────────────────────
  1789. 
  1790.  Source Display Mode  S « + | - | & »                            Sets display
  1791.                                                                  source,
  1792.                                                                  assembly, or
  1793.  
  1794.  Stack Trace          K                                          Displays acti
  1795.                                                                  routines on t
  1796.  
  1797.  Tab Set              #number                                    Sets number s
  1798.                                                                  each tab char
  1799.  
  1800.  Trace                T «count»                                  Executes sour
  1801.                                                                  or instructio
  1802.                                                                  tracing into
  1803.                                                                  pro-
  1804.                                                                  cedure, or in
  1805.                                                                  calls; repeat
  1806.                                                                  times
  1807.  
  1808.  Name                 Syntax                                     Description
  1809.  ─────────────────────────────────────────────────────────────────────────────
  1810. 
  1811.  Unassemble           U «viewaddress»                            Displays
  1812.                                                                  assembly-lang
  1813.                                                                  instructions
  1814.  
  1815.  View                 V « «viewaddress».line number»             Displays sour
  1816.  
  1817.  8087                 7                                          Displays 80x8
  1818.                                                                  registers
  1819.  
  1820.  ─────────────────────────────────────────────────────────────────────────────
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  Size Specifiers
  1826.  
  1827.  Use these data types with Dump and Enter dialog commands:
  1828.  
  1829.  Data Type                         Description
  1830.  ────────────────────────────────────────────────────────────────────────────
  1831.  None                              Default type
  1832.  
  1833.  A                                 ASCII (8-bit) characters
  1834.  
  1835.  B                                 Byte (8-bit) hexadecimal values
  1836.  
  1837.  D                                 Double-word (32-bit) hexadecimal values
  1838.  
  1839.  I                                 Signed integer (16-bit) decimal values;
  1840.                                    equivalent to C
  1841.                                    signed int
  1842.  
  1843.  L                                 Long (64-bit) floating-point (real)
  1844.                                    values; equivalent to C double
  1845.  
  1846.  S                                 Short (32-bit) floating-point values;
  1847.                                    equivalent to C float
  1848.  
  1849.  T                                 10-byte (80-bit) floating-point values;
  1850.                                    equivalent to C
  1851.                                    long double
  1852.  
  1853.  U                                 Unsigned integer (16-bit) decimal
  1854.                                    values; equivalent to C
  1855.                                    unsigned int
  1856.  
  1857.  W                                 Word (16-bit) hexadecimal values
  1858.  
  1859.  
  1860.  Format Specifiers
  1861.  
  1862.  Character                         Output Format
  1863.  ────────────────────────────────────────────────────────────────────────────
  1864.  d                                 Signed decimal integer
  1865.  
  1866.  i                                 Signed decimal integer
  1867.  
  1868.  u                                 Unsigned decimal integer
  1869.  
  1870.  o                                 Unsigned octal integer
  1871.  
  1872.  x | X                             Hexadecimal integer
  1873.  
  1874.  f                                 Signed value in floating-point decimal
  1875.                                    format with six decimal places
  1876.  
  1877.  e | E                             Signed value in scientific-notation
  1878.                                    format with up to six decimal places
  1879.                                    (trailing zeros and decimal point
  1880.                                    truncated)
  1881.  
  1882.  g | G                             Signed value with floating-point decimal
  1883.                                    or scientific-notation format, whichever
  1884.                                    is more compact
  1885.  
  1886.  c                                 Single character
  1887.  
  1888.  s                                 Characters printed up to the first null
  1889.                                    character
  1890.  
  1891.  ────────────────────────────────────────────────────────────────────────────
  1892.  NOTE
  1893.  
  1894.  The prefix h can be used with the integer-type specifiers (d, o, u, x, and
  1895.  X) to specify a short int. The prefix l can be used with the same types to
  1896.  specify a long int.
  1897.  ────────────────────────────────────────────────────────────────────────────
  1898.  
  1899.  
  1900.  Command-Window Commands (Protected Mode)
  1901.  
  1902.  Syntax                            Description
  1903.  ────────────────────────────────────────────────────────────────────────────
  1904.  None                              Default type
  1905.  
  1906.  |                                 Displays process ID number (PID) and
  1907.                                    session (screen group) ID number
  1908.  
  1909.  | processID                       Enables direct debugging of the child
  1910.                                    process identified
  1911.  
  1912.  
  1913.  Thread Commands
  1914.  
  1915.  
  1916.  Syntax
  1917.  
  1918.    ~«specifier«command» »
  1919.  
  1920.  In the syntax above, the specifier specifies the thread or threads, and
  1921.  command determines debugging activity.
  1922.  
  1923.  The legal values for specifier and their effects are listed below.
  1924.  
  1925.  Specifier                         Function
  1926.  ────────────────────────────────────────────────────────────────────────────
  1927.  Blank                             Displays the status of all threads. If
  1928.                                    you omit the specifier field you cannot
  1929.                                    enter a command. Instead, you enter the
  1930.                                    tilde (~) by itself.
  1931.  
  1932.  #                                 Specifies the last thread that was
  1933.                                    executed, which is not necessarily the
  1934.                                    current thread.
  1935.  
  1936.  *                                 Specifies all threads.
  1937.  
  1938.  number                            Specifies the indicated thread, where
  1939.                                    number must be a number corresponding to
  1940.                                    an existing thread. You can determine
  1941.                                    corresponding numbers for all threads by
  1942.                                    entering the command ~*, which gives the
  1943.                                    status of all threads.
  1944.  
  1945.  .                                 Specifies the current thread.
  1946.  
  1947.  The legal values for command and their effects are listed below.
  1948.  
  1949.  Command                           Function
  1950.  ────────────────────────────────────────────────────────────────────────────
  1951.  Blank                             Displays the status of the selected
  1952.                                    thread (or threads).
  1953.  
  1954.  BP                                Sets the breakpoint for the specified
  1955.                                    thread or threads.
  1956.  
  1957.  E                                 Executes the specified thread in slow
  1958.                                    motion. The command ~*E is legal only in
  1959.                                    source mode, where it executes the
  1960.                                    current thread in slow motion but lets
  1961.                                    all other unfrozen threads run.
  1962.  
  1963.  F                                 Freezes the specified thread (or
  1964.                                    threads). A frozen thread will not run
  1965.                                    in the background or in response to the
  1966.                                    debugger Go command. However, if you use
  1967.                                    the E, G, P, or T variation of the
  1968.                                    Thread command, the specified thread is
  1969.                                    temporarily unfrozen while the debugger
  1970.                                    executes the command.
  1971.  
  1972.  G                                 Passes control to the specified thread
  1973.                                    until it terminates or until a
  1974.                                    breakpoint is reached. If you give the
  1975.                                    command ~*G, all threads execute
  1976.                                    concurrently (except for those that are
  1977.                                    frozen). If you specify a particular
  1978.                                    thread, the debugger temporarily freezes
  1979.                                    all other threads and executes the
  1980.                                    specified thread.
  1981.  
  1982.  P                                 Executes a program step for the
  1983.                                    specified thread. The command ~*P is
  1984.                                    legal only in source mode and causes the
  1985.                                    debugger to step to the next source line
  1986.                                    while letting all other threads run
  1987.                                    (except for those that are frozen). You
  1988.                                    see only the current thread execute in
  1989.                                    the debugger display.
  1990.  
  1991.  S                                 Selects the specified thread as the
  1992.                                    current thread. Can apply to only one
  1993.                                    thread at a time. Thus, the command ~*S
  1994.                                    results in an error message.
  1995.  
  1996.  T                                 Traces the specified thread. Identical
  1997.                                    to P, except that T traces through
  1998.                                    function calls and interrupts, whereas P
  1999.                                    does not.
  2000.  
  2001.  U                                 Unfreezes the specified thread or
  2002.                                    threads. Reverses the effect of a freeze.
  2003.  
  2004.  
  2005.  Effect of Threads on CodeView Commands
  2006.  
  2007.  Whether or not you use the Thread Command, the existence of threads affects
  2008.  your CodeView debugging session at all times. Particular debugger commands
  2009.  are strongly affected. Each of these commands is discussed below.
  2010.  
  2011.  Command                           Behavior in Multiple-Thread Programs
  2012.  ────────────────────────────────────────────────────────────────────────────
  2013.  .                                 The Current Location command always uses
  2014.                                    the current value of CS:IP to determine
  2015.                                    what the current instruction is. Thus,
  2016.                                    the Current Location command applies to
  2017.                                    the current thread.
  2018.  
  2019.  E                                 When the debugger is in source mode, the
  2020.                                    Execute command is equivalent to the ~*E
  2021.                                    command. The current thread is executed
  2022.                                    in slow motion while all other threads
  2023.                                    are also running. When the debugger is
  2024.                                    in mixed or assembly mode, the
  2025.                                    Execute command is equivalent to the
  2026.                                    command ~.P, which does not let other
  2027.                                    threads run concurrently.
  2028.  
  2029.  BP                                The Breakpoint Set command is equivalent
  2030.                                    to the ~*BP command; the breakpoint
  2031.                                    applies to all threads.
  2032.  
  2033.  G                                 The Go command is equivalent to the ~*G
  2034.                                    command; control is passed to the
  2035.                                    operating system, which executes all
  2036.                                    threads in the program except for those
  2037.                                    that are frozen.
  2038.  
  2039.  P                                 When the debugger is in source mode, the
  2040.                                    Program Step command is equivalent to
  2041.                                    the command ~*P, which lets other
  2042.                                    threads run concurrently. When the
  2043.                                    debugger is in mixed or assembly mode,
  2044.                                    the Program Step command is equivalent
  2045.                                    to the command ~.P, which lets no other
  2046.                                    threads run.
  2047.  
  2048.  K                                 The Stack Trace command displays the
  2049.                                    stack of the current thread.
  2050.  
  2051.  T                                 When the debugger is in source mode, the
  2052.                                    Trace command is equivalent to the
  2053.                                    command ~*T, which lets other threads
  2054.                                    run concurrently. When the debugger is
  2055.                                    in mixed or assembly mode, the Trace
  2056.                                    command is equivalent to the command ~.T,
  2057.                                    which lets no other threads run.
  2058.  
  2059.  
  2060.  CVPACK
  2061.  ────────────────────────────────────────────────────────────────────────────
  2062.  
  2063.  
  2064.  Summary
  2065.  
  2066.  The CVPACK utility reads through an .EXE file and combines multiple-module
  2067.  debugging information into one table at the end of the file. CodeView can
  2068.  then load the file more quickly.
  2069.  
  2070.  
  2071.  Syntax
  2072.  
  2073.    CVPACK «options» filename
  2074.  
  2075.  
  2076.  Options
  2077.  
  2078.  /HELP                             Causes CVPACK to attempt to call the
  2079.                                    QuickHelp program
  2080.  
  2081.  /P                                Packs the file to the smallest possible
  2082.                                    size
  2083.  
  2084.  
  2085.  EXEHDR
  2086.  ────────────────────────────────────────────────────────────────────────────
  2087.  
  2088.  
  2089.  Summary
  2090.  
  2091.  The EXEHDR utility displays and modifies the contents of an executable-file
  2092.  header.
  2093.  
  2094.  
  2095.  Syntax
  2096.  
  2097.    EXEHDR «options» filename
  2098.  
  2099.  
  2100.  Options
  2101.  
  2102.  /HEAP:nnnn                        Sets the heap allocation field to nnnn
  2103.                                    for segmented executable files.
  2104.  
  2105.  /HELP                             Calls the QuickHelp utility. If the
  2106.                                    QuickHelp program is not available,
  2107.                                    EXEHDR displays the usage message to the
  2108.                                    standard output.
  2109.  
  2110.  /MAX:nnnn                         Sets the maximum allocation field to
  2111.                                    nnnn paragraphs for DOS.
  2112.  
  2113.  /MIN:nnnn                         Sets the minimum allocation field to
  2114.                                    nnnn paragraphs for DOS.
  2115.  
  2116.  /NOLOGO                           Directs EXEHDR to suppress the sign-on
  2117.                                    banner.
  2118.  
  2119.  /PMTYPE:type                      Sets the window type for Presentation
  2120.                                    Manager programs, where type is one of
  2121.                                    PM (equivalent to WINDOWAPI), VIO
  2122.                                    (equivalent to WINDOWCOMPAT), or NOVIO
  2123.                                    (equivalent to NOTWINDOWCOMPAT).
  2124.  
  2125.  /RESETERROR                       Resets the error bit in the header of an
  2126.                                    OS/2 or Windows executable file. It has
  2127.                                    no effect on DOS executable files.
  2128.  
  2129.  /STACK:nnnn                       Sets the stack allocation field to nnnn
  2130.                                    for DOS and segmented-executable files.
  2131.  
  2132.  /VERBOSE                          Provides more information about
  2133.                                    protected mode (OS/2) executable files
  2134.                                    and DLLs, including the default flags in
  2135.                                    the segment table, all run-time
  2136.                                    relocations, and additional fields from
  2137.                                    the .EXE header.
  2138.  
  2139.  
  2140.  EXP
  2141.  ────────────────────────────────────────────────────────────────────────────
  2142.  
  2143.  
  2144.  Summary
  2145.  
  2146.  The EXP utility expunges (removes) all files from the DELETED subdirectory.
  2147.  Copies of deleted files are placed in DELETED by PWB (when the backup switch
  2148.  is on) and by RM.
  2149.  
  2150.  
  2151.  Syntax
  2152.  
  2153.    EXP «options» «directory»
  2154.  
  2155.  If no directory is specified, the current directory's DELETED subdirectory
  2156.  is used.
  2157.  
  2158.  
  2159.  Options
  2160.  
  2161.  /HELP                             Causes EXP to attempt to call the
  2162.                                    QuickHelp program
  2163.  
  2164.  /Q                                Specifies quiet mode (the deleted file
  2165.                                    names are not displayed on the screen)
  2166.  
  2167.  /R                                Causes EXP to operate recursively on all
  2168.                                    subdirectories
  2169.  
  2170.  
  2171.  HELPMAKE
  2172.  ────────────────────────────────────────────────────────────────────────────
  2173.  
  2174.  
  2175.  Summary
  2176.  
  2177.  The HELPMAKE utility creates help files and customizes the help files
  2178.  supplied with Microsoft language products. It creates a help database from
  2179.  one or more input files that contain information specially formatted for the
  2180.  help system.
  2181.  
  2182.  
  2183.  Syntax
  2184.  
  2185.    HELPMAKE «options» {/E«n» | /D}  sourcefiles
  2186.  
  2187.  You must supply the /HELP, /E (encode), or /D (decode) option.
  2188.  
  2189.  
  2190.  Options
  2191.  
  2192.  /Ac                               Specifies c as an application-specific
  2193.                                    control character for the help database,
  2194.                                    marking a line that contains special
  2195.                                    information for internal use by the
  2196.                                    application.
  2197.  
  2198.  /C                                Indicates that the context strings are
  2199.                                    case sensitive. At run time, all
  2200.                                    searches for help topics are case
  2201.                                    sensitive.
  2202.  
  2203.  /D«letter»                        Decodes the input file into its
  2204.                                    component parts. If a destination file
  2205.                                    is not specified with the /O option, the
  2206.                                    help file is decoded to stdout. HELPMAKE
  2207.                                    decodes the file in different ways,
  2208.                                    depending on the letter specified.
  2209.  
  2210.                                    Letter      Effect
  2211.  ────────────────────────────────────────────────────────────────────────────
  2212.                                    /D          "Decode." Fully decodes the
  2213.                                                help database, leaving all
  2214.                                                cross-references and
  2215.                                                formatting information
  2216.                                                intact.
  2217.  
  2218.                                    /DS         "Decode split." Splits the
  2219.                                                concatenated, compressed
  2220.                                                help database into its
  2221.                                                components, using their
  2222.                                                original names. If the
  2223.                                                database was created without
  2224.                                                concatenation (the default),
  2225.                                                HELPMAKE simply copies it to
  2226.                                                a file with its original
  2227.                                                name. No decompression
  2228.                                                occurs.
  2229.  
  2230.                                    /DU         "Decode unformatted."
  2231.                                                Decompresses the database
  2232.                                                and removes all screen
  2233.                                                formatting and
  2234.                                                cross-references. The output
  2235.                                                can still be used later for
  2236.                                                input and recompression, but
  2237.                                                all of the screen formatting
  2238.                                                and
  2239.                                                cross-references are lost.
  2240.  
  2241.  /E«n»                             Creates ("encodes") a help database from
  2242.                                    a specified text file (or files). The
  2243.                                    optional n indicates the amount of
  2244.                                    compression to take place. If n is
  2245.                                    omitted, HELPMAKE compresses the file as
  2246.                                    much as possible, thereby reducing the
  2247.                                    size of the file by about 50 percent.
  2248.                                    The more compression requested, the
  2249.                                    longer HELPMAKE takes to create a
  2250.                                    database file. The value of n is a
  2251.                                    number in the range 0-15. It is the sum
  2252.                                    of successive powers of 2 representing
  2253.                                    these compression techniques:
  2254.  
  2255.                                    Value       Technique
  2256.  ────────────────────────────────────────────────────────────────────────────
  2257.                                    0           No compression
  2258.  
  2259.                                    1           Run-length compression
  2260.  
  2261.                                    2           Keyword compression
  2262.  
  2263.                                    4           Extended-keyword compression
  2264.  
  2265.                                    8           Huffman compression
  2266.  
  2267.                                    Add values to combine compression
  2268.                                    techniques. For example, use /E3 to get
  2269.                                    run-length and keyword compression.
  2270.  
  2271.  /H                                Displays a summary of HELPMAKE syntax
  2272.                                    and then exits.
  2273.  
  2274.  /HELP                             Calls the QuickHelp utility. If the
  2275.                                    QuickHelp program is not available,
  2276.                                    HELPMAKE displays the most commonly used
  2277.                                    HELPMAKE options to the standard output
  2278.                                    (without encoding or decoding any files).
  2279.  
  2280.  /K filename                       Specifies a file containing
  2281.                                    word-separator characters. This file
  2282.                                    should consist of a single line of text
  2283.                                    containing characters that separate
  2284.                                    words. ASCII characters from 0 to 32
  2285.                                    (including the space), and character 127,
  2286.                                    are always separators. If the /K option
  2287.                                    is not specified, the following
  2288.                                    characters are also considered
  2289.                                    separators:
  2290.  
  2291.                                     !"#&'()*+-,/:;<=>?@[\]^_`{\}~
  2292.  
  2293.  /L                                Locks the generated file so that it
  2294.                                    cannot be decoded by HELPMAKE at a later
  2295.                                    time.
  2296.  
  2297.  /Ooutfile                         Specifies outfile as the name of the
  2298.                                    help database. The name outfile is
  2299.                                    optional with the /D option.
  2300.  
  2301.  /Sn                               Specifies the type of input file,
  2302.                                    according to the following n values:
  2303.  
  2304.                                    Option      File Type
  2305.  ────────────────────────────────────────────────────────────────────────────
  2306.                                    /S1         Rich Text Format (RTF)
  2307.  
  2308.                                    /S2         QuickHelp Format (default)
  2309.  
  2310.                                    /S3         Minimally Formatted ASCII
  2311.  
  2312.  /T                                During encoding, translates dot commands
  2313.                                    to application-specific commands. During
  2314.                                    decoding, translates application
  2315.                                    commands to dot commands.
  2316.  
  2317.  /V«n»                             Indicates the "verbosity" of diagnostic
  2318.                                    and informational output, depending on
  2319.                                    the value of n. If you omit this option
  2320.                                    or specify only /V, HELPMAKE gives you
  2321.                                    its most verbose output. The possible
  2322.                                    values of n are listed below:
  2323.  
  2324.                                    Option      Effect
  2325.  ────────────────────────────────────────────────────────────────────────────
  2326.                                    /V          Maximum diagnostic output
  2327.  
  2328.                                    /V0         No diagnostic output and no
  2329.                                                banner
  2330.  
  2331.                                    /V1         Prints only HELPMAKE banner
  2332.  
  2333.                                    /V2         Prints pass names
  2334.  
  2335.                                    /V3         Prints contexts on first
  2336.                                                pass
  2337.  
  2338.                                    /V4         Prints contexts on each pass
  2339.  
  2340.                                    /V5         Prints any intermediate
  2341.                                                steps within each pass
  2342.  
  2343.                                    /V6         Prints statistics on help
  2344.                                                file and compression
  2345.  
  2346.  /Wn                               Indicates the fixed width of the
  2347.                                    resulting help text in number of
  2348.                                    characters. The value of n can range
  2349.                                    from 11 to 255. If /W is omitted, the
  2350.                                    default is 76. When encoding RTF source
  2351.                                    (/S1), HELPMAKE automatically formats
  2352.                                    the text to n. When encoding QuickHelp
  2353.                                    (/S2) or minimally formatted ASCII (/S3)
  2354.                                    files, HELPMAKE truncates lines to n
  2355.                                    characters.
  2356.  
  2357.  
  2358.  ILINK (Incremental Linker)
  2359.  ────────────────────────────────────────────────────────────────────────────
  2360.  
  2361.  
  2362.  Summary
  2363.  
  2364.  The ILINK utility invokes the Microsoft Incremental Linker.
  2365.  
  2366.  
  2367.  Syntax
  2368.  
  2369.    ILINK «options» projname «modulelist»
  2370.  
  2371.  
  2372.  Options
  2373.  
  2374.  /A                                Directs ILINK to check for changes in
  2375.                                    the object files since the last linking
  2376.                                    process.
  2377.  
  2378.  /C                                Specifies case sensitivity for all
  2379.                                    public symbol names.
  2380.  
  2381.  /E "commands"                     Specifies commands to be executed if
  2382.                                    incremental linking fails. The option /E
  2383.                                    "LINK /INC" is the default.
  2384.  
  2385.  /HELP                             Provides on-line help about the
  2386.                                    incremental linker. First /HELP attempts
  2387.                                    to execute the QuickHelp program QH.EXE.
  2388.                                    If QuickHelp or its database is
  2389.                                    unavailable, /HELP lists ILINK options
  2390.                                    to the standard output.
  2391.  
  2392.  /I                                Specifies that only an incremental link
  2393.                                    is to be attempted. If the incremental
  2394.                                    link fails, a fatal error follows the
  2395.                                    incremental violation message.
  2396.  
  2397.  /NOLOGO                           Causes ILINK to suppress the sign-on
  2398.                                    banner.
  2399.  
  2400.  /V                                Verbose mode. Directs ILINK to list all
  2401.                                    changed modules.
  2402.  
  2403.  /X                                Prevents ILINK from allocating memory
  2404.                                    from an expanded memory manager if one
  2405.                                    is present.
  2406.  
  2407.  
  2408.  LIB
  2409.  ────────────────────────────────────────────────────────────────────────────
  2410.  
  2411.  
  2412.  Summary
  2413.  
  2414.  The LIB utility helps create, organize, and maintain run-time libraries.
  2415.  
  2416.  
  2417.  Syntax
  2418.  
  2419.    LIB inlibrary «options» «commands» «,«listfile» «,«outlibrary» » » « ; »
  2420.  
  2421.  
  2422.  Options
  2423.  
  2424.  /HELP                             Provides on-line help for LIB. First
  2425.                                    /HELP attempts to execute the QuickHelp
  2426.                                    program QH.EXE. If QuickHelp or its
  2427.                                    database is unavailable, /HELP lists the
  2428.                                    LIB options to the standard output.
  2429.  
  2430.  /I«GNORECASE»                     Directs LIB to ignore case when
  2431.                                    comparing symbols (the default). Use to
  2432.                                    combine a library marked /NOI with an
  2433.                                    unmarked library for a new unmarked
  2434.                                    library.
  2435.  
  2436.  /NOE«XTDICTIONARY»                Prevents LIB from creating an extended
  2437.                                    dictionary.
  2438.  
  2439.  /NOI«GNORECASE»                   Directs LIB not to ignore case when
  2440.                                    comparing symbols.
  2441.  
  2442.  /NOL«OGO»                         Causes LIB to suppress the sign-on
  2443.                                    banner.
  2444.  
  2445.  /PA«GESIZE»:n                     Specifies the library-page size of a new
  2446.                                    library, or changes the library-page
  2447.                                    size of an existing library. The default
  2448.                                    page size for a new library is 16 bytes.
  2449.  
  2450.  
  2451.  Commands
  2452.  
  2453.  +filename                         Appends an object file or library file
  2454.                                    to the given library
  2455.  
  2456.  -filename                         Deletes a module from the library
  2457.  
  2458.  -+filename                        Replaces a module by deleting it from
  2459.                                    the library and appending to the library
  2460.                                    an object file with the same name
  2461.  
  2462.  *filename                         Extracts a module without deleting it
  2463.                                    from the library and saves the module as
  2464.                                    an
  2465.                                    object file with the same name
  2466.                                    (copies it)
  2467.  
  2468.  -*filename                        Extracts a module and deletes it from
  2469.                                    the library after saving it in an object
  2470.                                    file with the same name (moves it)
  2471.  
  2472.  ────────────────────────────────────────────────────────────────────────────
  2473.  NOTE
  2474.  Place an ampersand (&) at the end of an input line to continue the command
  2475.  codes on the next line.
  2476.  ────────────────────────────────────────────────────────────────────────────
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  LINK (Linker)
  2483.  ────────────────────────────────────────────────────────────────────────────
  2484.  
  2485.  
  2486.  Summary
  2487.  
  2488.  The Microsoft Segmented-Executable Linker (LINK) combines object files into
  2489.  a single executable file.
  2490.  
  2491.  
  2492.  Syntax
  2493.  
  2494.    LINK «options» objfiles «,«exefile» «,« mapfile» «,«libraries» «,«deffile»
  2495.    » » » » « ; »
  2496.  
  2497.  
  2498.  Options
  2499.  
  2500.  /A                                /A«LIGNMENT»:size
  2501.  
  2502.                                    Directs LINK to align segment data in
  2503.                                    the executable file along the boundaries
  2504.                                    specified by size, where size must be a
  2505.                                    power of two. Default is 512.
  2506.  
  2507.  /BA                               /BA«TCH»
  2508.  
  2509.                                    Suppresses prompts for library or object
  2510.                                    files not found. LINK generates error or
  2511.                                    warning messages instead, if appropriate.
  2512.                                    Also prevents LINK from printing the
  2513.                                    sign-on banner and echoing input from
  2514.                                    response files.
  2515.  
  2516.  /CO                               /CO«DEVIEW»
  2517.  
  2518.                                    Creates a special-format executable file
  2519.                                    containing the symbolic data and
  2520.                                    line-number information needed by the
  2521.                                    Microsoft CodeView debugger.
  2522.  
  2523.  /CP                               /CP«ARMAXALLOC»:bytes
  2524.  
  2525.                                    Sets the program's maximum memory
  2526.                                    allocation to bytes.
  2527.  
  2528.  /DO                               /DO«SSEG»
  2529.  
  2530.                                    For assembly-language programs only.
  2531.                                    Forces segments in the executable file
  2532.                                    to be ordered as follows:
  2533.  
  2534.  
  2535.    1.  Segments with class name ending in CODE
  2536.  
  2537.    2.  All other segments outside DGROUP
  2538.  
  2539.    3.  DGROUP segments, in the following order:
  2540.  
  2541.        a.  Segments of class BEGDATA
  2542.  
  2543.        b.  Segments not of class BEGDATA, BSS, or STACK
  2544.  
  2545.        c.  Segments of class  BSS
  2546.  
  2547.        d.  Segments of class STACK
  2548.  
  2549.  /DS                               /DS«ALLOCATE»
  2550.  
  2551.  
  2552.  
  2553.                                    For assembly-language programs only.
  2554.                                    Directs the linker to load all data
  2555.                                    starting at the high end of the data
  2556.                                    segment instead of the low end.
  2557.  
  2558.  /E                                /E«XEPACK»
  2559.  
  2560.                                    Packs the executable file during linking
  2561.                                    by removing repeated series of bytes.
  2562.  
  2563.  /F                                /F«ARCALLTRANSLATION»
  2564.  
  2565.                                    Directs the linker to optimize far calls
  2566.                                    to procedures that lie in the same
  2567.                                    segment as the caller. Use in
  2568.                                    conjunction with /PACKCODE. Far-call
  2569.                                    translation is turned on by default.
  2570.  
  2571.  /HE                               /HE«LP»
  2572.  
  2573.                                    Provides on-line help about the linker.
  2574.                                    First LINK attempts to execute the
  2575.                                    QuickHelp program QH.EXE. If QuickHelp
  2576.                                    or its database is unavailable, LINK
  2577.                                    lists all available options to the
  2578.                                    standard output.
  2579.  
  2580.  /HI                               /HI«GH»
  2581.  
  2582.                                    Places the executable file as high in
  2583.                                    memory as possible.  For real-mode
  2584.                                    assembly-language programs only.
  2585.  
  2586.  /INC                              /INC«REMENTAL»
  2587.  
  2588.                                    Prepares for subsequent incremental
  2589.                                    linking with ILINK. Incompatible with /E
  2590.                                    and /TINY.
  2591.  
  2592.  /INF                              /INF«ORMATION»
  2593.  
  2594.                                    Causes the linker to display phase of
  2595.                                    linking and names of object files being
  2596.                                    linked to the standard output.
  2597.  
  2598.  /LI                               /LI«NENUMBERS»
  2599.  
  2600.                                    Includes source-file line numbers and
  2601.                                    associated addresses in the map file. In
  2602.                                    addition, an object file with
  2603.                                    line-number information must be given to
  2604.                                    LINK. The /Zd option can be used with
  2605.                                    most Microsoft compilers to include line
  2606.                                    numbers in the object file. If LINK is
  2607.                                    given an object file without linenumber
  2608.                                    information, the /LI option has no
  2609.                                    effect.
  2610.  
  2611.  /M                                /M«AP»
  2612.  
  2613.                                    Creates a listing file containing all
  2614.                                    public (global) symbols defined in the
  2615.                                    input modules.
  2616.  
  2617.  /NOD                              /NOD«EFAULTLIBRARYSEARCH» «:filename»
  2618.  
  2619.                                    Causes default libraries to be ignored.
  2620.                                    If filename is specified, LINK searches
  2621.                                    all libraries except filename.
  2622.  
  2623.  /NOE                              /NOE«XTDICTIONARY»
  2624.  
  2625.                                    Prevents the linker from searching the
  2626.                                    extended dictionary (an internal list of
  2627.                                    intermodule dependencies).  Use this
  2628.                                    option to suppress error messages about
  2629.                                    multiple symbol definitions.
  2630.  
  2631.  /NOF                              /NOF«ARCALLTRANSLATION»
  2632.  
  2633.                                    Turns off far-call translation
  2634.                                    (translation of far calls to near calls
  2635.                                    where possible). Far-call translation is
  2636.                                    off by default.
  2637.  
  2638.  /NOI                              /NOI«GNORECASE»
  2639.  
  2640.                                    Causes the linker to distinguish between
  2641.                                    uppercase and lowercase letters.
  2642.  
  2643.  /NOL                              /NOL«OGO»
  2644.  
  2645.                                    Causes the linker to suppress the
  2646.                                    sign-on banner.
  2647.  
  2648.  /NON                              /NON«ULLSDOSSEG»
  2649.  
  2650.                                    Directs the linker to arrange segments
  2651.                                    in the executable file in the same order
  2652.                                    as they are arranged by the /DOSSEG
  2653.                                    option, with no additional bytes at the
  2654.                                    beginning of the _TEXT segment (if it is
  2655.                                    defined).
  2656.  
  2657.  /NOP                              /NOP«ACKCODE»
  2658.  
  2659.                                    Turns code-segment packing off (if
  2660.                                    code-segment packing has been turned on).
  2661.  
  2662.  /O                                /O«VERLAYINTERRUPT»:number
  2663.  
  2664.                                    Allows the user to select an interrupt
  2665.                                    number other than 63 (the default) for
  2666.                                    passing control to overlays.
  2667.  
  2668.  /PACKC                            /PACKC«ODE» «:number»
  2669.  
  2670.                                    Directs the linker to group neighboring
  2671.                                    code segments together in the medium,
  2672.                                    large, and huge memory models, where
  2673.                                    number specifies the maximum size of
  2674.                                    groups formed by /PACKCODE.  When used
  2675.                                    with /FARCALLTRANSLATION, this produces
  2676.                                    smaller code.
  2677.  
  2678.  /PACKD                            /PACKD«ATA» «:number»
  2679.  
  2680.                                    Directs the linker to group neighboring
  2681.                                    data segments together in the compact,
  2682.                                    large, and huge memory models, where
  2683.                                    number specifies the maximum size of
  2684.                                    groups formed by /PACKDATA.
  2685.  
  2686.  /PADC                             /PADC«ODE»:padsize
  2687.  
  2688.                                    Directs the linker to add filler bytes
  2689.                                    to the end of each code module for
  2690.                                    subsequent linking with ILINK; padsize
  2691.                                    specifies the number of bytes.
  2692.  
  2693.  /PADD                             /PADD«ATA»:padsize
  2694.  
  2695.                                    Adds padsize bytes to each data segment.
  2696.  
  2697.  /PAU                              /PAU«SE»
  2698.  
  2699.                                    Causes the linker to pause in the
  2700.                                    linking session so that disks can be
  2701.                                    changed. This option is provided for
  2702.                                    floppy-disk users.
  2703.  
  2704.  /PM                               /PM«TYPE»:type
  2705.  
  2706.                                    Sets the window type for Presentation
  2707.                                    Manager (PM) programs, where type is:
  2708.  
  2709.  
  2710.                                    Type        Windows Equivalent
  2711.  ────────────────────────────────────────────────────────────────────────────
  2712.  
  2713.                                    PM          WINDOWAPI keyword in a
  2714.                                                module
  2715.                                                definition (.DEF) file
  2716.  
  2717.                                    VIO         WINDOWCOMPAT
  2718.  
  2719.                                    NOVIO       NOTWINDOWCOMPAT
  2720.  
  2721.  /Q                                /Q«UICKLIB»
  2722.  
  2723.                                    Produces a Quick library for use with
  2724.                                    Microsoft QuickC(R) (early versions only)
  2725.                                    or Microsoft QuickBASIC.
  2726.  
  2727.  /SE                               /SE«GMENTS»:number
  2728.  
  2729.                                    Sets the maximum number of segments the
  2730.                                    program can have, which can be any
  2731.                                    positive value up to 3,072 bytes. The
  2732.                                    default is 128.
  2733.  
  2734.  /ST                               /ST«ACK»:number
  2735.  
  2736.                                    Sets the stack size to number, which can
  2737.                                    be any positive value up to 65,535 bytes.
  2738.                                    The default for C programs is 0x800
  2739.                                    (2,048) bytes.
  2740.  
  2741.  /T                                /T«INY»
  2742.  
  2743.                                    Causes the linker to produce .COM files.
  2744.                                    Incompatible with /INCREMENTAL.
  2745.  
  2746.  /W                                /W«ARNFIXUP»
  2747.  
  2748.                                    Issues a warning for each segment offset
  2749.                                    previously at the beginning of a group
  2750.                                    but altered during linking to no longer
  2751.                                    be at the beginning of a group.
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  Default File-Name Extensions
  2757.  
  2758.  File Type                         Default Extension
  2759.  ────────────────────────────────────────────────────────────────────────────
  2760.  Object                            .OBJ
  2761.  
  2762.  Executable                        .EXE (or .COM with /T option)
  2763.  
  2764.  Map                               .MAP
  2765.  
  2766.  Standard Library                  .LIB
  2767.  
  2768.  Dynamic-Link Library              .DLL (OS/2 and Windows only)
  2769.  
  2770.  Module Definitions                .DEF (OS/2 and Windows only)
  2771.  
  2772.  
  2773.  Module-Definition Files
  2774.  
  2775.  A module-definition file is required for Windows applications and libraries
  2776.  and for dynamic-link libraries (DLLs) that run under OS/2. Such files are
  2777.  optional (but desirable) for all OS/2 applications. Each file contains one
  2778.  or more module statements that describe the module name, attributes of
  2779.  program segments, and number and names of exported and imported functions.
  2780.  Following the list of module statements below is a description of each one,
  2781.  including syntax and fields.
  2782.  
  2783.  NAME            DATA            IMPORTS         OLD
  2784.  LIBRARY         SEGMENTS        STUB            REALMODE
  2785.  DESCRIPTION     STACKSIZE       HEAPSIZE        EXETYPE
  2786.  CODE            EXPORTS         PROTMODE
  2787.  
  2788.  NAME Statement
  2789.  
  2790.  
  2791.  Summary
  2792.  
  2793.  The NAME statement identifies the executable file as an application and
  2794.  optionally defines the name and type.
  2795.  
  2796.  
  2797.  Syntax
  2798.  
  2799.    NAME «app_name» «app_type»
  2800.  
  2801.  
  2802.  Fields
  2803.  
  2804.  app_name                          Name of the application. Can be any
  2805.                                    valid file name.
  2806.  
  2807.  app_type                          {WINDOWAPI | WINDOWCOMPAT |
  2808.                                    NOTWINDOWCOMPAT}
  2809.  
  2810.                                    Defines the type of application to be
  2811.                                    linked in a Windows environment.
  2812.                                    WINDOWAPI specifies a Presentation
  2813.                                    Manager (PM) application using the API
  2814.                                    provided by PM and must be executed in
  2815.                                    the PM environment. This is equivalent
  2816.                                    to linker option /PMTYPE:PM.
  2817.                                    WINDOWCOMPAT specifies a PM-compatible
  2818.                                    application that can run inside a PM
  2819.                                    window or in a separate screen group
  2820.                                    using the proper subset of OS/2 video,
  2821.                                    keyboard, and mouse functions supported
  2822.                                    in PM applications. This is equivalent
  2823.                                    to linker option /PMTYPE:VIO.
  2824.                                    NOTWINDOWCOMPAT specifies that the
  2825.                                    application is not compatible with PM
  2826.                                    and must operate in a separate screen
  2827.                                    group from PM. This is equivalent to
  2828.                                    linker option
  2829.                                    /PMTYPE:NOVIO.
  2830.  
  2831.  
  2832.  LIBRARY Statement
  2833.  
  2834.  
  2835.  Summary
  2836.  
  2837.  The LIBRARY statement identifies the executable file as a dynamic-link
  2838.  library. It can specify the name of the library or the type of
  2839.  library-module initialization required.
  2840.  
  2841.  
  2842.  Syntax
  2843.  
  2844.    LIBRARY «libraryname» «initialization»
  2845.  
  2846.  
  2847.  Fields
  2848.  
  2849.  libraryname                       Name of the library. Can be any valid
  2850.                                    file name.
  2851.  
  2852.  initialization                    {INITGLOBAL | INITINSTANCE}
  2853.  
  2854.                                    Determines the type of initialization
  2855.                                    required. INITGLOBAL specifies that the
  2856.                                    library-initialization routine is called
  2857.                                    only when the library module is
  2858.                                    initially loaded into memory.
  2859.                                    INITINSTANCE specifies that the
  2860.                                    library-initialization routine is called
  2861.                                    each time a new process gains access to
  2862.                                    the library. This option is necessary
  2863.                                    for DLLs that use the C library
  2864.                                    functions.
  2865.  
  2866.  
  2867.  DESCRIPTION Statement
  2868.  
  2869.  
  2870.  Summary
  2871.  
  2872.  The DESCRIPTION statement inserts the specified text into the application or
  2873.  library.
  2874.  
  2875.  
  2876.  Syntax
  2877.  
  2878.    DESCRIPTION 'text'
  2879.  
  2880.  The text is a one-line string enclosed in single quotation marks.
  2881.  
  2882.  
  2883.  CODE Statement
  2884.  
  2885.  
  2886.  Summary
  2887.  
  2888.  The CODE statement defines the default attributes for code segments within
  2889.  the application or library. The SEGMENTS statement can override this
  2890.  default.
  2891.  
  2892.  
  2893.  Syntax
  2894.  
  2895.    CODE «load» «executeonly» «iopl» «conforming» «shared» «movable» «discard»
  2896.  
  2897.  Each attribute field can appear one time at most, and order is not
  2898.  significant.
  2899.  
  2900.  
  2901.  Fields
  2902.  
  2903.  load                              {PRELOAD | LOADONCALL}
  2904.  
  2905.                                    Determines when a code segment is loaded.
  2906.                                    PRELOAD specifies that the segment is
  2907.                                    loaded automatically at the beginning of
  2908.                                    the program. LOADONCALL (default)
  2909.                                    specifies that the segment is not loaded
  2910.                                    until accessed.
  2911.  
  2912.  executeonly                       {EXECUTEONLY | EXECUTEREAD}
  2913.  
  2914.                                    Determines whether a code segment can be
  2915.                                    read as well as executed. EXECUTEONLY
  2916.                                    specifies that the segment can only be
  2917.                                    executed. EXECUTEREAD (default)
  2918.                                    specifies that the segment can be both
  2919.                                    executed and read.
  2920.  
  2921.  iopl                              {IOPL | NOIOPL}
  2922.  
  2923.                                    Determines whether or not a segment has
  2924.                                    I/O privilege (OS/2 only). IOPL
  2925.                                    specifies that the code segment has I/O
  2926.                                    privilege. NOIOPL (default) specifies
  2927.                                    that the code segment does not have I/O
  2928.                                    privilege.
  2929.  
  2930.  conforming                        {CONFORMING | NONCONFORMING}
  2931.  
  2932.                                    Determines whether or not a code segment
  2933.                                    is a 80286 "conforming" segment.
  2934.                                    CONFORMING specifies that the segment is
  2935.                                    conforming, which means it can be called
  2936.                                    from either Ring 2 or Ring 3 and it
  2937.                                    executes at the caller's privilege level.
  2938.  
  2939.                                    NONCONFORMING (default) specifies that
  2940.                                    the segment is
  2941.                                    nonconforming.
  2942.  
  2943.  shared                            {SHARED | NONSHARED}
  2944.  
  2945.                                    Determines whether all instances of the
  2946.                                    program can share an EXECUTEREAD code
  2947.                                    segment. SHARED specifies that one copy
  2948.                                    of the code segment is loaded and shared
  2949.                                    among all processes accessing the module
  2950.                                    (the default for dynamic-link libraries).
  2951.                                    NONSHARED specifies that the segment
  2952.                                    cannot be shared and must be loaded
  2953.                                    separately for each process (the default
  2954.                                    for applications).
  2955.  
  2956.  movable                           {MOVABLE | FIXED}
  2957.  
  2958.                                    Determines whether a segment can be
  2959.                                    moved around in memory. For use with
  2960.                                    real-mode Windows only. FIXED is the
  2961.                                    default.
  2962.  
  2963.  discard                           {DISCARDABLE | NONDISCARDABLE}
  2964.  
  2965.                                    Determines whether a segment of memory
  2966.                                    can be discarded to fill a different
  2967.                                    memory request. If the discarded memory
  2968.                                    contains a function that is called later,
  2969.                                    it is reloaded from disk. For use with
  2970.                                    real-mode Windows only. NONDISCARDABLE
  2971.                                    is the default.
  2972.  
  2973.  
  2974.  DATA Statement
  2975.  
  2976.  
  2977.  Summary
  2978.  
  2979.  The DATA statement defines the default attributes for the data segments
  2980.  within the application or module.
  2981.  
  2982.  
  2983.  Syntax
  2984.  
  2985.    DATA «load» «readonly» «instance» «iopl» «shared» «movable» «discard»
  2986.  
  2987.  Each field attribute can appear one time at most, and order is not
  2988.  significant.
  2989.  
  2990.  
  2991.  Fields
  2992.  
  2993.  load                              {PRELOAD | LOADONCALL}
  2994.  
  2995.                                    Determines when a code segment is loaded.
  2996.                                    PRELOAD specifies that the segment is
  2997.                                    loaded automatically at the beginning of
  2998.                                    the program. LOADONCALL (default)
  2999.                                    specifies that the segment is not loaded
  3000.                                    until accessed.
  3001.  
  3002.  readonly                          {READONLY | READWRITE}
  3003.  
  3004.                                    Determines access rights to a data
  3005.                                    segment. READONLY specifies that the
  3006.                                    segment can only be read. READWRITE
  3007.                                    (default) specifies that the segment can
  3008.                                    be both read and
  3009.                                    written to.
  3010.  
  3011.  instance                          {NONE | SINGLE | MULTIPLE}
  3012.  
  3013.                                    Affects the sharing attributes of the
  3014.                                    automatic data segment represented by
  3015.                                    the group name DGROUP. NONE specifies
  3016.                                    that no automatic data segment is
  3017.                                    created. SINGLE specifies that a single
  3018.                                    automatic data segment is shared by all
  3019.                                    instances of the module (default for
  3020.                                    dynamic-link libraries). MULTIPLE
  3021.                                    specifies that the automatic data
  3022.                                    segment is copied for each instance of
  3023.                                    the module (default for applications).
  3024.  
  3025.  iopl                              {IOPL | NOIOPL}
  3026.  
  3027.                                    Determines whether or not a segment has
  3028.                                    I/O privilege (OS/2 only). IOPL
  3029.                                    specifies that the code segment has I/O
  3030.                                    privilege. NOIOPL (default) specifies
  3031.                                    that the code segment does not have I/O
  3032.                                    privilege.
  3033.  
  3034.  shared                            {SHARED | NONSHARED}
  3035.  
  3036.                                    Determines whether all instances of the
  3037.                                    program can share an EXECUTEREAD code
  3038.                                    segment. SHARED specifies that one copy
  3039.                                    of the code segment is loaded and shared
  3040.                                    among all processes accessing the module
  3041.                                    (the default for dynamic-link libraries).
  3042.                                    NONSHARED specifies that the segment
  3043.                                    cannot be shared and must be loaded
  3044.                                    separately for each process (the default
  3045.                                    for applications).
  3046.  
  3047.  movable                           {MOVABLE | FIXED}
  3048.  
  3049.                                    Determines whether a segment can be
  3050.                                    moved around in memory. For use with
  3051.                                    real-mode Windows only. FIXED is the
  3052.                                    default.
  3053.  
  3054.  discard                           {DISCARDABLE | NONDISCARDABLE}
  3055.  
  3056.                                    Determines whether a segment of memory
  3057.                                    can be discarded when not needed. If the
  3058.                                    discarded memory contains data that is
  3059.                                    accessed later, it is reloaded from disk.
  3060.                                    For use with real-mode Windows only.
  3061.                                    NONDISCARDABLE is the default.
  3062.  
  3063.  
  3064.  SEGMENTS Statement
  3065.  
  3066.  
  3067.  Summary
  3068.  
  3069.  The SEGMENTS statement defines the attributes of one or more segments in the
  3070.  application or library on a segment-by-segment basis. The attributes
  3071.  specified by this statement override defaults set in CODE and DATA
  3072.  statements.
  3073.  
  3074.  
  3075.  Syntax
  3076.  
  3077.    SEGMENTS  « ' » segmentname« ' » «CLASS 'classname'» «load»  «readonly»
  3078.    «executeonly» «iopl» «conforming» «shared» «movable» «discard»
  3079.  
  3080.  The SEGMENTS keyword marks the beginning of the segment definitions. This
  3081.  keyword can be followed by one or more segment definitions, each on a
  3082.  separate line (limited by the number set by the linker's /SEGMENTS option,
  3083.  or 128 if the option is not used). The CLASS keyword specifies the class of
  3084.  the segment.
  3085.  
  3086.  
  3087.  Fields
  3088.  
  3089.  load                              {PRELOAD | LOADONCALL}
  3090.  
  3091.                                    Determines when a code segment is loaded.
  3092.                                    PRELOAD specifies that the segment is
  3093.                                    loaded automatically at the beginning of
  3094.                                    the program. LOADONCALL (default)
  3095.                                    specifies that the segment is not loaded
  3096.                                    until accessed.
  3097.  
  3098.  readonly                          {READONLY | READWRITE}
  3099.  
  3100.                                    Determines access rights to a data
  3101.                                    segment. READONLY specifies that the
  3102.                                    segment can only be read. READWRITE
  3103.                                    (default) specifies that the segment can
  3104.                                    be both read and
  3105.                                    written to.
  3106.  
  3107.  executeonly                       {EXECUTEONLY | EXECUTEREAD}
  3108.  
  3109.                                    Determines whether a code segment can be
  3110.                                    read as well as executed. EXECUTEONLY
  3111.                                    specifies that the segment can only be
  3112.                                    executed. EXECUTEREAD (default)
  3113.                                    specifies that the segment can be both
  3114.                                    executed and read.
  3115.  
  3116.  iopl                              {IOPL | NOIOPL}
  3117.  
  3118.                                    Determines whether or not a segment has
  3119.                                    I/O privilege (OS/2 only). IOPL
  3120.                                    specifies that the code segment has I/O
  3121.                                    privilege. NOIOPL (default) specifies
  3122.                                    that the code segment does not have I/O
  3123.                                    privilege.
  3124.  
  3125.  conforming                        {CONFORMING | NONCONFORMING}
  3126.  
  3127.                                    Determines whether or not a code segment
  3128.                                    is a 80286 "conforming" segment.
  3129.                                    CONFORMING specifies that the segment is
  3130.                                    conforming, which means it can be called
  3131.                                    from either Ring 2 or Ring 3 and it
  3132.                                    executes at the caller's privilege level.
  3133.  
  3134.                                    NONCONFORMING (default) specifies that
  3135.                                    the segment is
  3136.                                    nonconforming.
  3137.  
  3138.  shared                            {SHARED | NONSHARED}
  3139.  
  3140.                                    Determines whether all instances of the
  3141.                                    program can share an EXECUTEREAD code
  3142.                                    segment. SHARED specifies that one copy
  3143.                                    of the code segment is loaded and shared
  3144.                                    among all processes accessing the module
  3145.                                    (the default for dynamic-link libraries).
  3146.                                    NONSHARED specifies that the segment
  3147.                                    cannot be shared and must be loaded
  3148.                                    separately for each process (default for
  3149.                                    applications).
  3150.  
  3151.  movable                           {MOVABLE | FIXED}
  3152.  
  3153.                                    Determines whether a segment can be
  3154.                                    moved around in memory. For use with
  3155.                                    real-mode Windows only. FIXED is the
  3156.                                    default.
  3157.  
  3158.  discard                           {DISCARDABLE | NONDISCARDABLE}
  3159.  
  3160.                                    Determines whether a segment of memory
  3161.                                    can be discarded to fill a different
  3162.                                    memory request. If the discarded memory
  3163.                                    contains a function that is called later,
  3164.                                    it is reloaded from disk. For use with
  3165.                                    real-mode Windows only. NONDISCARDABLE
  3166.                                    is the default.
  3167.  
  3168.  
  3169.  STACKSIZE Statement
  3170.  
  3171.  
  3172.  Summary
  3173.  
  3174.  The STACKSIZE statement specifies the size of the stack segment. (The
  3175.  STACKSIZE statement overrides the /STACKSIZE linker option.)
  3176.  
  3177.  
  3178.  Syntax
  3179.  
  3180.    STACKSIZE number
  3181.  
  3182.  The number must be an integer; it is considered to be in decimal format by
  3183.  default, but C notation can be used to specify hexadecimal or octal format.
  3184.  
  3185.  
  3186.  
  3187.  EXPORTS Statement
  3188.  
  3189.  
  3190.  Summary
  3191.  
  3192.  The EXPORTS statement declares the names and attributes of the functions
  3193.  exported to other modules and the functions that run with I/O privilege. The
  3194.  EXPORTS statement also declares Windows callback functions such as dialog
  3195.  boxes and timer functions. It is unnecessary to export callback functions
  3196.  within an OS/2 Presentation Manager program.
  3197.  
  3198.  
  3199.  Syntax
  3200.  
  3201.    EXPORTS entryname «=internalname» «@ord«RESIDENTNAME» » «pwords» «NODATA»
  3202.  
  3203.  The EXPORTS keyword marks the beginning of the export definitions. It can be
  3204.  followed by up to 3,072 export definitions, each on a separate line.
  3205.  
  3206.  The optional keyword NODATA is ignored by OS/2, but is provided for use by
  3207.  real-mode Windows. It means there is no static data in the function.
  3208.  
  3209.  
  3210.  Fields
  3211.  
  3212.  entryname                         Defines the function name as known to
  3213.                                    other modules.
  3214.  
  3215.  internalname                      Defines the actual export function name
  3216.                                    as it appears within the module. Default
  3217.                                    is the same as entryname.
  3218.  
  3219.  ord                               Defines the function's ordinal position
  3220.                                    within the moduledefinition table. Can
  3221.                                    contain the optional keyword
  3222.                                    RESIDENTNAME, which specifies that the
  3223.                                    function name
  3224.                                    be kept resident in memory at all times.
  3225.  
  3226.  pwords                            Specifies the total size of the
  3227.                                    function's parameters in words.
  3228.  
  3229.  
  3230.  IMPORTS Statement
  3231.  
  3232.  
  3233.  Summary
  3234.  
  3235.  The IMPORTS statement defines the names of the functions to be imported for
  3236.  the application or library.
  3237.  
  3238.  
  3239.  Syntax
  3240.  
  3241.    IMPORTS «internalname=»modulename.entry
  3242.  
  3243.  The IMPORTS keyword marks the beginning of the import definitions. This
  3244.  keyword is followed by one or more import definitions, each on a separate
  3245.  line. Note that if you supply an import library, you need not list the
  3246.  individual functions.
  3247.  
  3248.  
  3249.  Fields
  3250.  
  3251.  internalname                      Specifies the name that the importing
  3252.                                    module actually uses to call the
  3253.                                    function. By default, internalname is
  3254.                                    the same as the name given in entry.
  3255.  
  3256.  modulename                        Name of the application or library
  3257.                                    containing the function.
  3258.  
  3259.  entry                             Determines the function to be imported
  3260.                                    and can be a name or an ordinal value.
  3261.  
  3262.  
  3263.  STUB Statement
  3264.  
  3265.  
  3266.  Summary
  3267.  
  3268.  The STUB statement adds a DOS executable file to the beginning of the
  3269.  application or library being created. Typically, the stub displays a message
  3270.  and terminates execution.
  3271.  
  3272.  
  3273.  Syntax
  3274.  
  3275.    STUB 'filename'
  3276.  
  3277.  The filename specifies the DOS executable file to be added. If the linker
  3278.  does not find filename in the current directory, it searches in the list of
  3279.  directories specified in the PATH environment variable.
  3280.  
  3281.  
  3282.  HEAPSIZE Statement
  3283.  
  3284.  
  3285.  Summary
  3286.  
  3287.  The HEAPSIZE statement defines the size of the application's local heap in
  3288.  bytes. This value affects the size of the automatic data segment.
  3289.  
  3290.  
  3291.  Syntax
  3292.  
  3293.    HEAPSIZE {bytes | MAXVAL}
  3294.  
  3295.  The bytes field is a decimal integer value by default. However, hexadecimal
  3296.  and octal numbers can be entered by using C notation. MAXVAL is an optional
  3297.  keyword which can be substituted for bytes to set the field parameter.
  3298.  MAXVAL sets the heap size to 64K minus the size of DGROUP.
  3299.  
  3300.  
  3301.  PROTMODE Statement
  3302.  
  3303.  
  3304.  Summary
  3305.  
  3306.  The optional PROTMODE statement specifies that the module runs only in
  3307.  protected mode and not in Windows or dual mode.
  3308.  
  3309.  
  3310.  Syntax
  3311.  
  3312.    PROTMODE
  3313.  
  3314.  
  3315.  OLD Statement
  3316.  
  3317.  
  3318.  Summary
  3319.  
  3320.  The OLD statement directs the linker to search another dynamic-link module
  3321.  for export ordinals.
  3322.  
  3323.  
  3324.  Syntax
  3325.  
  3326.    OLD 'filename'
  3327.  
  3328.  
  3329.  REALMODE Statement
  3330.  
  3331.  
  3332.  Summary
  3333.  
  3334.  The REALMODE statement specifies that the application runs only in real
  3335.  mode.
  3336.  
  3337.  
  3338.  Syntax
  3339.  
  3340.    REALMODE
  3341.  
  3342.  
  3343.  EXETYPE Statement
  3344.  
  3345.  
  3346.  Summary
  3347.  
  3348.  The optional EXETYPE statement specifies in which operating system the
  3349.  application (or dynamic-link library) is to run.
  3350.  
  3351.  
  3352.  Syntax
  3353.  
  3354.    EXETYPE « OS2 | WINDOWS | UNKNOWN »
  3355.  
  3356.  
  3357.  NMAKE
  3358.  ────────────────────────────────────────────────────────────────────────────
  3359.  
  3360.  
  3361.  Summary
  3362.  
  3363.  The NMAKE utility automates the process of compiling and linking project
  3364.  files. NMAKE is upwardly compatible with the older MAKE utility if the /MAKE
  3365.  option is used.
  3366.  
  3367.  
  3368.  Syntax
  3369.  
  3370.    NMAKE «options» «macrodefinitions» «targets»
  3371.  
  3372.  
  3373.  Options
  3374.  
  3375.  /A                                Executes commands to build all the
  3376.                                    targets requested even if they are not
  3377.                                    out-of-date.
  3378.  
  3379.  /C                                Suppresses the NMAKE copyright message
  3380.                                    and prevents nonfatal error or warning
  3381.                                    messages from being displayed.
  3382.  
  3383.  /D                                Displays the modification date of each
  3384.                                    file when the date is checked.
  3385.  
  3386.  /E                                Causes environment variables to override
  3387.                                    macro definitions within description
  3388.                                    files.
  3389.  
  3390.  /F filename                       Specifies filename as the name of the
  3391.                                    description file to use. If a dash (-)
  3392.                                    is entered instead of a file name, NMAKE
  3393.                                    accepts input from the standard input
  3394.                                    device instead of using a description
  3395.                                    file. If /F is not specified, NMAKE uses
  3396.                                    MAKEFILE as the description file.
  3397.  
  3398.  /HELP                             Calls the QuickHelp utility.  If the
  3399.                                    QuickHelp program is not available,
  3400.                                    NMAKE displays the most commonly used
  3401.                                    NMAKE options to the standard output.
  3402.  
  3403.  /I                                Ignores exit codes (also called return
  3404.                                    or error codes) returned by programs
  3405.                                    called from the NMAKE description file.
  3406.                                    NMAKE continues executing the rest of
  3407.                                    the description file despite the errors.
  3408.  
  3409.  /N                                Displays the commands from the
  3410.                                    description file that NMAKE would
  3411.                                    execute, but does not execute these
  3412.                                    commands. This option is useful for
  3413.                                    checking which targets are out-of-date
  3414.                                    and for debugging description files.
  3415.  
  3416.  /NOLOGO                           Suppresses the sign-on banner when NMAKE
  3417.                                    executes.
  3418.  
  3419.  /P                                Prints all macro definitions and target
  3420.                                    descriptions.
  3421.  
  3422.  /Q                                Returns a zero exit code if the target
  3423.                                    is up-to-date and a nonzero exit code if
  3424.                                    it is not. This option is useful when
  3425.                                    invoking NMAKE from within a batch file.
  3426.  
  3427.  /R                                Ignores inference rules and macros
  3428.                                    contained in the TOOLS.INI file.
  3429.  
  3430.  /S                                Suppresses display of commands as they
  3431.                                    are executed.
  3432.  
  3433.  /T                                Changes the modification dates for
  3434.                                    outdated target files to the current
  3435.                                    date. The file contents are not modified.
  3436.  
  3437.  /X filename                       Sends all error output to filename,
  3438.                                    which can be either a file or a device.
  3439.                                    If a dash is entered instead of a file
  3440.                                    name, the error output is sent to the
  3441.                                    standard output device.
  3442.  
  3443.  /Z                                Internal option for use by the
  3444.                                    Programmer's WorkBench.
  3445.  
  3446.  /?                                Displays a brief summary of NMAKE syntax
  3447.                                    and exits to the operating system.
  3448.  
  3449.  
  3450.  NMAKE Macro Statements
  3451.  
  3452.  
  3453.  Description Block Format
  3454.  
  3455.  
  3456.  Syntax
  3457.  
  3458.    target... :  «dependent» «;command» «#comment»
  3459.    «command»
  3460.    «#comment»
  3461.    «#comment» | «command»
  3462.    .
  3463.    .
  3464.    .
  3465.  
  3466.  The following symbols are used in description blocks:
  3467.  
  3468.  Symbol                            Meaning
  3469.  ────────────────────────────────────────────────────────────────────────────
  3470.  #                                 Introduces comment field
  3471.  
  3472.  *, ?                              DOS wild-card characters; NMAKE expands
  3473.                                    them in target names when it reads the
  3474.                                    description file
  3475.  
  3476.  ^                                 Introduces any escape character in a
  3477.                                    description file, including these: # ( )
  3478.                                    $ ^ \ { } ! @
  3479.  
  3480.  
  3481.  Command Modifiers
  3482.  
  3483.  These characters can be placed in front of a command to modify its effect.
  3484.  The character must be preceded by at least one space.
  3485.  
  3486.  Character                         Action
  3487.  ────────────────────────────────────────────────────────────────────────────
  3488.  -                                 Turns off error checking for the command
  3489.  
  3490.  @                                 Prevents NMAKE from displaying the
  3491.                                    command as it executes
  3492.  
  3493.  !                                 Causes the command to be executed for
  3494.                                    each dependent file if the command uses
  3495.                                    one of the special macros $? or $**
  3496.  
  3497.  
  3498.  Macros
  3499.  
  3500.  
  3501.  Syntax
  3502.  
  3503.  macroname=macrostring
  3504.  
  3505.  The macroname can be any combination of alphanumeric characters and the
  3506.  underscore (_) character. The macrostring can be any valid string.
  3507.  
  3508.  Having defined the macro, use the following reference to include it in a
  3509.  dependency line or command:
  3510.  
  3511.  $(macroname)
  3512.  
  3513.  Use the following syntax to substitute text within a macro:
  3514.  
  3515.    $(macroname:string1 = string2)
  3516.  
  3517.  
  3518.  Specific Macro Names
  3519.  
  3520.  The following macro names have specific meanings:
  3521.  
  3522.  Macro                             Meaning
  3523.  ────────────────────────────────────────────────────────────────────────────
  3524.  $*                                The target's base name with the
  3525.                                    extension deleted.
  3526.  
  3527.  $@                                The full name of the current target.
  3528.  
  3529.  $**                               The complete list of dependent files.
  3530.  
  3531.  $<                                The dependent file that is out-of-date
  3532.                                    with respect to the target (evaluated
  3533.                                    only for inference rules).
  3534.  
  3535.  $?                                The list of dependents that are
  3536.                                    out-of-date with respect to the target.
  3537.  
  3538.  $$@                               The target that NMAKE is currently
  3539.                                    evaluating. A dynamic dependency
  3540.                                    parameter used only in dependency lines.
  3541.  
  3542.  $(CC)                             The command to invoke the C compiler. By
  3543.                                    default, NMAKE predefines this macro as
  3544.                                    CC = cl.
  3545.  
  3546.  $(AS)                             The command that invokes the Microsoft
  3547.                                    Macro Assembler. NMAKE predefines this
  3548.                                    macro as AS = masm.
  3549.  
  3550.  $(MAKE)                           The name with which NMAKE is invoked.
  3551.                                    Used to invoke NMAKE recursively. It
  3552.                                    causes the line on which it appears to
  3553.                                    be executed even if the /N option is on.
  3554.                                    Redefine this macro if you want to
  3555.                                    execute another program.
  3556.  
  3557.  $(MAKEDIR)                        The directory from which NMAKE was
  3558.                                    invoked.
  3559.  
  3560.  $(MAKEFLAGS)                      The NMAKE options currently in effect.
  3561.                                    If you invoke NMAKE recursively, use the
  3562.                                    command $(MAKE)
  3563.                                    $(MAKEFLAGS). You cannot redefine this
  3564.                                    macro.
  3565.  
  3566.  
  3567.  Inference Rules
  3568.  
  3569.  Inference rules are templates that NMAKE uses to generate files with a given
  3570.  extension.
  3571.  
  3572.  
  3573.  Syntax
  3574.  
  3575.    . fromext.toext: command «command»...
  3576.  
  3577.  NMAKE uses these predefined inference rules:
  3578.  
  3579. ╓┌───────────────┌────────────────────────┌──────────────────────────────────╖
  3580.  Inference Rule  Command                  Default Action
  3581.  ────────────────────────────────────────────────────────────────────────────
  3582.  .C.OBJ          $(CC) $(CFLAGS) /C $*.C  CL /C $*.C
  3583.  .C.EXE          $(CC) $(CFLAGS) $*.C     CL $*.C
  3584.  .ASM.OBJ        $(AS) $(AFLAGS) $*;      MASM $*;
  3585.  ────────────────────────────────────────────────────────────────────────────
  3586.  
  3587.  
  3588.  
  3589.  Directives
  3590.  
  3591.  The following directives conditionally execute commands, display error
  3592.  messages, include the contents of other files, and turn on or off some of
  3593.  NMAKE's options.
  3594.  
  3595.  Directive                         Description
  3596.  ────────────────────────────────────────────────────────────────────────────
  3597.  !IF expression                    Executes the statements between the !IF
  3598.                                    keyword and the next !ELSE or !ENDIF
  3599.                                    directive if expression evaluates to a
  3600.                                    nonzero value. The expression consists
  3601.                                    of integer constants, string constants,
  3602.                                    or program invocations. Integer
  3603.                                    constants can use the C unary operators
  3604.                                    for numerical negation (-), one's
  3605.                                    complement (~), and logical negation (!),
  3606.                                    and can also use the C binary operators
  3607.                                    (+, -, *, /, %, &, |, ^, &&, ||, <<, >>,
  3608.                                    ==, !=, <, >, <=, and >=).
  3609.  
  3610.  !ELSE                             Executes the statements between the
  3611.                                    !ELSE and !ENDIF directives if the
  3612.                                    statements preceding the !ELSE directive
  3613.                                    were not executed.
  3614.  
  3615.  !ENDIF                            Marks the end of the !IF, !IFDEF, or
  3616.                                    !IFNDEF block of statements.
  3617.  
  3618.  !IFDEF macroname                  Executes the statements between the
  3619.                                    !IFDEF keyword and the next !ELSE or
  3620.                                    !ENDIF directive if macroname is defined
  3621.                                    in the description file. NMAKE considers
  3622.                                    a macro with a null value to be defined.
  3623.  
  3624.  !IFNDEF macroname                 Executes the statements between the
  3625.                                    !IFNDEF keyword and the next !ELSE or
  3626.                                    !ENDIF directive if macroname is not
  3627.                                    defined in the description file.
  3628.  
  3629.  !UNDEF macroname                  Marks macroname as being undefined in
  3630.                                    NMAKE's symbol table.
  3631.  
  3632.  !ERROR text                       Causes text to be printed, and then
  3633.                                    stops
  3634.                                    execution.
  3635.  
  3636.  !INCLUDE filename                 Reads and evaluates the file filename
  3637.                                    before continuing with the current
  3638.                                    description file. If filename is
  3639.                                    enclosed by angle brackets (< >), NMAKE
  3640.                                    searches for the file in the directories
  3641.                                    specified by the
  3642.                                    INCLUDE macro; otherwise it looks in the
  3643.                                    current directory only. The INCLUDE
  3644.                                    macro is initially set to the value of
  3645.                                    the
  3646.                                    INCLUDE environment variable.
  3647.  
  3648.  !CMDSWITCHES {+ | -}opt           Turns on or off one of four NMAKE
  3649.                                    options: /D, /I, /N, and /S. If no
  3650.                                    options are specified, the options are
  3651.                                    reset to the way they were when NMAKE
  3652.                                    was started. Turn an option on by
  3653.                                    preceding it with a plus sign (+), or
  3654.                                    turn it off by preceding it with a minus
  3655.                                    sign (-). Using this directive updates
  3656.                                    the MAKEFLAGS macro.
  3657.  
  3658.  
  3659.  Pseudotargets
  3660.  
  3661.  A "pseudotarget" is not a file. It is a name that serves as a handle for
  3662.  building a group of files or executing a group of commands. The NMAKE
  3663.  utility includes these four predefined pseudotargets that provide special
  3664.  rules within a description file.
  3665.  
  3666.  Pseudotarget                      Action
  3667.  ────────────────────────────────────────────────────────────────────────────
  3668.  .SILENT :                         Does not display lines as they are
  3669.                                    executed. Has same effect as invoking
  3670.                                    NMAKE with the /S option.
  3671.  
  3672.  .IGNORE :                         Ignores exit codes returned by programs
  3673.                                    called from the description file. Has
  3674.                                    the same effect as invoking NMAKE with
  3675.                                    the /I option.
  3676.  
  3677.  .SUFFIXES : extensions...         Lists file suffixes for NMAKE to try if
  3678.                                    it needs to build a target file for
  3679.                                    which no dependents are specified.
  3680.  
  3681.  .PRECIOUS : targets...            Tells NMAKE not to delete a target if
  3682.                                    the commands that build it are
  3683.                                    interrupted. Overrides the NMAKE default.
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  Programmer's WorkBench
  3692.  ────────────────────────────────────────────────────────────────────────────
  3693.  
  3694.  
  3695.  Summary
  3696.  
  3697.  The Programmer's WorkBench (PWB) provides an integrated environment for
  3698.  developing programs in C. It runs under OS/2 1.1 and DOS 3.0 and above. With
  3699.  PWB, you can write and edit source and other text files, define development
  3700.  projects, and build applications from one or more files.
  3701.  
  3702.  
  3703.  Syntax
  3704.  
  3705.    PWB «options» «files»
  3706.  
  3707.  
  3708.  Options
  3709.  
  3710.  The options are case sensitive.
  3711.  
  3712.  /D«init»                          Prevents PWB from examining
  3713.                                    initialization files, where init is one
  3714.                                    or more of the following characters:
  3715.  
  3716.                                    T           Ignore TOOLS.INI
  3717.  
  3718.                                    S           Ignore CURRENT.STS (implies
  3719.                                                P)
  3720.  
  3721.                                    P           Ignore current program list
  3722.  
  3723.                                    If the /D option does not include an
  3724.                                    init character, all three files are
  3725.                                    ignored.
  3726.  
  3727.  /e cmdstr                         Specifies a command on start-up. The
  3728.                                    entire string of the argument cmdstr
  3729.                                    should be placed in double quotes if it
  3730.                                    contains a space.
  3731.  
  3732.  /m mark                           Moves the cursor to the specified mark
  3733.                                    instead of moving it to the last known
  3734.                                    position.
  3735.  
  3736.  /r                                Specifies that PWB starts in read-only
  3737.                                    mode. Editing of the file is not
  3738.                                    permitted.
  3739.  
  3740.  /t «file«/t«file » »...»          Specifies that any files that follow are
  3741.                                    temporary. If a single file is specified,
  3742.                                    the editor attempts to load it. If
  3743.                                    multiple files are specified, the first
  3744.                                    file is loaded. When the Exit function
  3745.                                    is invoked, the editor saves the current
  3746.                                    file and loads the next file in the list.
  3747.  
  3748.  /?                                Lists the command-line options available
  3749.                                    for starting PWB.
  3750.  
  3751.  
  3752.  Arguments to PWB Functions
  3753.  
  3754.  Arg                               Introduces an argument or function. Type
  3755.                                    ALT+A.
  3756.  
  3757.  Meta                              Modifies the actions of a function. Type
  3758.                                    F9.
  3759.  
  3760.  Textarg                           A text argument. Type arg, then the text
  3761.                                    to be passed to the PWB function.
  3762.  
  3763.  Numarg                            A text argument consisting of characters
  3764.                                    in the range 0-9.
  3765.  
  3766.  Markarg                           A text argument holding the name of a
  3767.                                    bookmark defined by the Mark function.
  3768.  
  3769.  Linearg                           When PWB is in line mode, entire lines
  3770.                                    of text are manipulated (deleted, moved,
  3771.                                    and so on). To select a range of lines,
  3772.                                    hold down the SHIFT key while moving the
  3773.                                    cursor.
  3774.  
  3775.  Streamarg                         When PWB is in stream mode, the text is
  3776.                                    treated as a stream of characters. Any
  3777.                                    stream of characters can be manipulated.
  3778.  
  3779.  Boxarg                            When PWB is in box mode, columns of text
  3780.                                    (boxes) can be manipulated.
  3781.  
  3782.  
  3783.  Categories of PWB Functions
  3784.  
  3785.  
  3786.  Command Manipulation
  3787.  
  3788.  FunctionDefault Description
  3789.  
  3790.  CancelESCCancels the current operation
  3791.  
  3792.  GraphicMost KeysInserts the ASCII value of the key into the file
  3793.  
  3794.  LastselectCTRL+URecalls the last cursor-movement argument
  3795.  
  3796.  LasttextCTRL+ORecalls the last textarg entered
  3797.  
  3798.  QuoteCTRL+PTreats the next keystroke literally
  3799.  
  3800.  Repeat─Repeats the previous command
  3801.  
  3802.  UndoALT+BKSPReverses the effect of the last editing change
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  File Operation
  3808.  
  3809.  FunctionDefaultDescription
  3810.  
  3811.  ExitF8Exits the editor,, with or without saving
  3812.  
  3813.  Noedit─Toggles the no-edit restriction
  3814.  
  3815.  RefreshSHIFT+F7Rereads the file,, discarding edits
  3816.  
  3817.  Saveall─Saves all modified files
  3818.  
  3819.  SetfileF2Saves the current file or loads a new file
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  Cursor Movement
  3825.  
  3826.  FunctionDefaultDescription
  3827.  
  3828.  BacktabSHIFT+TABMoves the cursor left to the previous tab stop
  3829.  
  3830.  BegfileCTRL+HOMEMoves the cursor to the beginning of file
  3831.  
  3832.  BeglineHOMEMoves the cursor left to the beginning of the line
  3833.  
  3834.  DownDOWNMoves the cursor down one line
  3835.  
  3836.  EndfileCTRL+ENDMoves the cursor to the end of the file
  3837.  
  3838.  EndlineENDMoves the cursor to the right of the last character of the line
  3839.  
  3840.  HomeNUM 5Moves the cursor to the upper-left corner of the window
  3841.  
  3842.  LeftLEFTMoves the cursor left by one character
  3843.  
  3844.  MpagePGUPMoves the cursor back by one page
  3845.  
  3846.  Mpara─Moves the cursor back by paragraphs
  3847.  
  3848.  MwordCTRL+LEFTMoves the cursor back by words
  3849.  
  3850.  Newline─Moves the cursor down to the next line
  3851.  
  3852.  PpagePGDNMoves the cursor forward by one page
  3853.  
  3854.  Ppara─Moves the cursor forward by paragraphs
  3855.  
  3856.  PwordCTRL+RIGHTMoves the cursor forward by words
  3857.  
  3858.  RightRIGHTMoves the cursor right by one character
  3859.  
  3860.  TabTABMoves the cursor right to the next tab stop
  3861.  
  3862.  UpUPMoves the cursor up one line
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  Mark/Goto Position
  3868.  
  3869.  FunctionDefaultDescription
  3870.  
  3871.  MarkCTRL+MMoves the cursor to the specified position in the file
  3872.  
  3873.  Restcur─Restores the cursor position saved with Savecur
  3874.  
  3875.  Savecur─Saves the cursor position for use with Restcur
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  Windows
  3881.  
  3882.  FunctionDefaultDescription
  3883.  
  3884.  MaximizeCTRL+F10Expands the window to its maximum size
  3885.  
  3886.  MlinesCTRL+WMoves the window back by lines
  3887.  
  3888.  PlinesCTRL+ZMoves the window forward by lines
  3889.  
  3890.  ResizeCTRL+F8Enlarges or shrinks the active window
  3891.  
  3892.  SetwindowCTRL+]Redisplays the window
  3893.  
  3894.  WindowF6Creates, removes, or moves between windows
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  Search/Replace
  3900.  
  3901.  FunctionDefaultDescription
  3902.  
  3903.  Mgrep─Searches a series of files
  3904.  
  3905.  Mreplace─Replaces throughout a series of files
  3906.  
  3907.  MsearchF4Searches backward
  3908.  
  3909.  PsearchF3Searches forward
  3910.  
  3911.  QreplaceCTRL+\Replaces with confirmation
  3912.  
  3913.  ReplaceCTRL+LReplaces without confirmation
  3914.  
  3915.  Searchall─Highlights all occurrences of a string
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  Special Insert
  3921.  
  3922.  FunctionDefaultDescription
  3923.  
  3924.  Curdate─Inserts the current date (example: 28-Nov-1990)
  3925.  
  3926.  Curday─Inserts the current day (example: Sun)
  3927.  
  3928.  Curfile─Inserts the name of the current file
  3929.  
  3930.  Curfileext─Inserts the extension of the current file
  3931.  
  3932.  Curfilenam─Inserts the base name of the current file
  3933.  
  3934.  Curtime─Inserts the current time (example: 13:45:55)
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  Insert/Delete
  3940.  
  3941.  FunctionDefaultDescription
  3942.  
  3943.  CdeleteCTRL+GDeletes the character to the left, excluding line breaks
  3944.  
  3945.  CopyCTRL+INSCopies the lines to the Clipboard
  3946.  
  3947.  DeleteDELDeletes the highlighted area
  3948.  
  3949.  EmacscdelBKSPDeletes the character to the left, including line breaks
  3950.  
  3951.  EmacsnewlENTERStarts a new line, breaking the current line
  3952.  
  3953.  Insert─Inserts spaces into the highlighted area
  3954.  
  3955.  InsertmodeINSToggles insert mode on and off
  3956.  
  3957.  LdeleteCTRL+YDeletes lines to the Clipboard
  3958.  
  3959.  LinsertCTRL+NInserts blank lines
  3960.  
  3961.  PasteSHIFT+INSInserts text from the Clipboard
  3962.  
  3963.  Sdelete─Deletes a stream of text, including the line breaks
  3964.  
  3965.  SinsertCTRL+JInserts blanks, breaking lines if necessary
  3966.  
  3967.  
  3968.  
  3969.  
  3970.  Programming
  3971.  
  3972.  FunctionDefaultDescription
  3973.  
  3974.  CompileCTRL+F3Executes the compile or build command
  3975.  
  3976.  NextmsgSHIFT+F3Moves the cursor to the next error message
  3977.  
  3978.  PbalCTRL+[Balances the parentheses and the brackets
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  Macro Creation
  3984.  
  3985.  FunctionDefaultDescription
  3986.  
  3987.  AssignALT+=Defines macros and sets switches
  3988.  
  3989.  ExecuteF7Executes a series of editor or macro commands
  3990.  
  3991.  Message─Displays a message on the dialog line
  3992.  
  3993.  RecordSHIFT+CTRL+RTurns macro recording on or off
  3994.  
  3995.  TellCTRL+TDisplays an assignment or macro definition
  3996.  
  3997.  Usercmd─Executes a command added to the PWB Run menu
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  Help
  4003.  
  4004.  FunctionDefaultDescription
  4005.  
  4006.  Pwbhelp─Displays Microsoft Advisor help screens
  4007.  
  4008.  PwbhelpnextCTRL+F1Displays the next physical topic in Microsoft Advisor
  4009.  
  4010.  SethelpSHIFT+CTRL+SAdds or deletes single help files
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  Miscellaneous
  4016.  
  4017.  FunctionDefaultDescription
  4018.  
  4019.  Environment─Displays or modifies environment settings
  4020.  
  4021.  InformationSHIFT+F10Displays a list of previously edited files
  4022.  
  4023.  InitializeSHIFT+F8Rereads the initialization file
  4024.  
  4025.  Print─Prints all or part of a file
  4026.  
  4027.  ShellSHIFT+F9Spawns a command-line shell
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  PWB Functions
  4033.  
  4034.  The PWB functions and the syntax for each are listed alphabetically below.
  4035.  Default keystrokes, if available, are given in parentheses.
  4036.  
  4037. ╓┌─────────────────────────────┌────────────────────────┌────────────────────
  4038.  Function                      Syntax                   Description
  4039.  (Default)
  4040.  ─────────────────────────────────────────────────────────────────────────────
  4041.  Arg                           Arg                      Introduces a function
  4042.  (ALT+A)                                                argument for a functio
  4043.  
  4044.  Assign                        Assign                   Treats the entire line
  4045.  (ALT+=)                                                the line break) on whi
  4046.                                                         is positioned as a fun
  4047.                                                         assignment or macro de
  4048.  
  4049.                                Arg Assign               Treats the text from t
  4050.                                                         cursor position to the
  4051.                                                         line (not including th
  4052.                                                         as a function assignme
  4053.                                                         definition.
  4054.  
  4055.  Function                      Syntax                   Description
  4056.  (Default)
  4057.  ─────────────────────────────────────────────────────────────────────────────
  4058. 
  4059.                                Arg boxarg Assign        Treats each line of th
  4060.                                                         an individual function
  4061.                                                         or macro definition. I
  4062.                                                         lines and
  4063.                                                         comment lines.
  4064.  
  4065.                                Arg linearg Assign       Treats each line as a
  4066.                                                         function assignment or
  4067.                                                         definition, ignoring b
  4068.                                                         and comment lines.
  4069.  
  4070.                                Arg textarg Assign       Treats textarg as a fu
  4071.                                                         assignment or macro de
  4072.  
  4073.                                Arg ? Assign             Displays the current f
  4074.                                                         assignments for all fu
  4075.                                                         macros.
  4076.  Function                      Syntax                   Description
  4077.  (Default)
  4078.  ─────────────────────────────────────────────────────────────────────────────
  4079.                                                        macros.
  4080.  
  4081.  Backtab                       Backtab                  Moves the cursor to th
  4082.  (SHIFT+TAB)                                            tab stop. Tab stops ar
  4083.                                                         be every nth character
  4084.                                                         defined by the tabstop
  4085.  
  4086.  Begfile                       Begfile                  Places the cursor at t
  4087.  (CTRL+HOME)                                            of the file.
  4088.  
  4089.  Begline                       Begline                  Places the cursor on t
  4090.  (HOME)                                                 nonblank character on
  4091.  
  4092.                                Meta Begline             Places the cursor in t
  4093.                                                         character position of
  4094.  
  4095.  Cancel                        Cancel                   Cancels the current op
  4096.  (ESC)                                                  an operation is in pro
  4097.  Function                      Syntax                   Description
  4098.  (Default)
  4099.  ─────────────────────────────────────────────────────────────────────────────
  4100. (ESC)                                                  an operation is in pro
  4101.                                                         canceled. If there is
  4102.                                                         but a message is on th
  4103.                                                         the dialog line is res
  4104.                                                         help window is open, t
  4105.                                                         closes it.
  4106.  
  4107.  Cdelete                       Cdelete                  Deletes the previous c
  4108.  (CTRL+G)                                               excluding line breaks.
  4109.                                                         cursor is in column 1,
  4110.                                                         moves the cursor to th
  4111.                                                         previous line. If issu
  4112.                                                         mode,
  4113.                                                         Cdelete deletes the pr
  4114.                                                         character,
  4115.                                                         reducing the length of
  4116.                                                         1; otherwise, it delet
  4117.                                                         previous character and
  4118.  Function                      Syntax                   Description
  4119.  (Default)
  4120.  ─────────────────────────────────────────────────────────────────────────────
  4121.                                                        previous character and
  4122.                                                         with a blank. If the c
  4123.                                                         beyond the end of the
  4124.                                                         function is invoked, t
  4125.                                                         moved to the immediate
  4126.                                                         last character on
  4127.                                                         the line.
  4128.  
  4129.  Compile                       Compile                  Displays the status of
  4130.  (CTRL+F3)                                              compilation (if any) o
  4131.                                                         line.
  4132.  
  4133.                                Arg Compile              Compiles and links the
  4134.                                                         Uses the extmake comma
  4135.                                                         matches the file-name
  4136.                                                         the current file.
  4137.  
  4138.                                Arg textarg Compile      Uses the command line
  4139.  Function                      Syntax                   Description
  4140.  (Default)
  4141.  ─────────────────────────────────────────────────────────────────────────────
  4142.                               Arg textarg Compile      Uses the command line
  4143.  
  4144.                                                         extmake:text. The text
  4145.                                                         %s in the command line
  4146.  
  4147.                                Arg Arg textarg Compile  Invokes the specified
  4148.                                                         program. Assumed to di
  4149.                                                         errors in the format
  4150.                                                         file row column messag
  4151.  
  4152.                                Arg Meta Compile         OS/2 only. Halts a pro
  4153.                                                         compilation running in
  4154.                                                         background after promp
  4155.                                                         confirmation.
  4156.  
  4157.  Copy                          Copy                     Copies the current lin
  4158.  (CTRL+INS)                                             Clipboard.
  4159.  
  4160.  Function                      Syntax                   Description
  4161.  (Default)
  4162.  ─────────────────────────────────────────────────────────────────────────────
  4163. 
  4164.                                Arg Copy                 Copies text from the i
  4165.                                                         position to the end of
  4166.                                                         places it in the Clipb
  4167.                                                         the line break.
  4168.  
  4169.                                Arg boxarg Copy          Copies the highlighted
  4170.                                Arg linearg Copy         Clipboard.
  4171.                                Arg streamarg Copy
  4172.                                Arg textarg Copy
  4173.  
  4174.                                Arg markarg Copy         Copies the range of te
  4175.                                                         the cursor and the loc
  4176.                                                         file marker to the Cli
  4177.                                                         stream mode, a stream
  4178.                                                         selected. In box mode,
  4179.                                                         treated as a boxarg or
  4180.                                                         depending on the relat
  4181.  Function                      Syntax                   Description
  4182.  (Default)
  4183.  ─────────────────────────────────────────────────────────────────────────────
  4184.                                                        depending on the relat
  4185.                                                         of the initial cursor
  4186.                                                         the file marker. In li
  4187.                                                         lines between the curs
  4188.                                                         file marker are copied
  4189.  
  4190.                                Arg numarg Copy          Copies the specified n
  4191.                                                         lines to the Clipboard
  4192.                                                         with the current line.
  4193.  
  4194.  Curdate                       Curdate                  Inserts the current da
  4195.                                                         cursor in the format o
  4196.  
  4197.  Curday                        Curday                   Inserts the current da
  4198.                                                         cursor in the format o
  4199.  
  4200.  Curfile                       Curfile                  Inserts the fully qual
  4201.                                                         name of the current fi
  4202.  Function                      Syntax                   Description
  4203.  (Default)
  4204.  ─────────────────────────────────────────────────────────────────────────────
  4205.                                                        name of the current fi
  4206.                                                         cursor.
  4207.  
  4208.  Curfileext                    Curfileext               Inserts the extension
  4209.                                                         current file at the cu
  4210.  
  4211.  Curfilenam                    Curfilenam               Inserts the base name
  4212.                                                         current file at the cu
  4213.  
  4214.  Curtime                       Curtime                  Inserts the current ti
  4215.                                                         cursor in the format o
  4216.  
  4217.  Delete                        Delete                   Deletes the single cha
  4218.  (DEL)                                                  the cursor, excluding
  4219.                                                         SHIFT+DEL places the d
  4220.                                                         character in the Clipb
  4221.                                                         deletes without copyin
  4222.                                                         to the Clipboard.
  4223.  Function                      Syntax                   Description
  4224.  (Default)
  4225.  ─────────────────────────────────────────────────────────────────────────────
  4226.                                                        to the Clipboard.
  4227.  
  4228.                                Arg Delete               Deletes all text from
  4229.                                                         cursor position to the
  4230.                                                         line. The deleted text
  4231.                                                         the line break) is pla
  4232.                                                         Clipboard. This comman
  4233.                                                         effect of joining line
  4234.  
  4235.                                Arg boxarg Delete        Deletes the highlighte
  4236.                                Arg linearg Delete       deleted text is placed
  4237.                                Arg streamarg Delete     Clipboard.
  4238.  
  4239.                                Arg Meta Delete          Performs the deletions
  4240.                                Arg boxarg Meta Delete   above, except the dele
  4241.                                Arg linearg Meta Delete  not placed in the Clip
  4242.  
  4243.                                Arg streamarg Meta
  4244.  Function                      Syntax                   Description
  4245.  (Default)
  4246.  ─────────────────────────────────────────────────────────────────────────────
  4247.                               Arg streamarg Meta
  4248.                                Delete
  4249.  
  4250.                                Meta Delete              Deletes the current ch
  4251.                                                         current selection. The
  4252.                                                         is not copied to the C
  4253.  
  4254.  Down                          Down                     Moves the cursor down
  4255.  (DOWN or CTRL+X)                                       the cursor moves out o
  4256.                                                         the window is adjusted
  4257.                                                         the number of lines sp
  4258.                                                         the vscroll switch.
  4259.  
  4260.                                Meta Down                Moves the cursor to th
  4261.                                                         the window without cha
  4262.                                                         column position.
  4263.  
  4264.  Emacscdel                     Emacscdel                Performs similarly to
  4265.  Function                      Syntax                   Description
  4266.  (Default)
  4267.  ─────────────────────────────────────────────────────────────────────────────
  4268. Emacscdel                     Emacscdel                Performs similarly to
  4269.  (BKSP)                                                 except that at the beg
  4270.                                                         line while in insert m
  4271.                                                         Emacscdel deletes the
  4272.                                                         between the current li
  4273.                                                         previous line, joining
  4274.                                                         lines together.
  4275.  
  4276.  Emacsnewl                     Emacsnewl                Performs similarly to
  4277.  (ENTER)                                                except that when in in
  4278.                                                         breaks the current lin
  4279.                                                         cursor position.
  4280.  
  4281.  Endfile                       Endfile                  Places the cursor at t
  4282.  (CTRL+END)                                             file.
  4283.  
  4284.  Endline                       Endline                  Moves the cursor to th
  4285.  (END)                                                  right of the last nonb
  4286.  Function                      Syntax                   Description
  4287.  (Default)
  4288.  ─────────────────────────────────────────────────────────────────────────────
  4289. (END)                                                  right of the last nonb
  4290.                                                         character on the line.
  4291.  
  4292.                                Meta Endline             Moves the cursor one c
  4293.                                                         beyond the column corr
  4294.                                                         the rightmost edge of
  4295.  
  4296.  Environment                   Environment              Executes the current l
  4297.                                                         environment-variable s
  4298.  
  4299.                                Arg boxarg Environment   Executes each highligh
  4300.                                Arg linearg Environment  line fragment as an
  4301.                                                         environment-variable s
  4302.  
  4303.                                Arg textarg Environment  Executes the text argu
  4304.                                                         environment-variable s
  4305.  
  4306.                                Arg ? Environment        Displays all current
  4307.  Function                      Syntax                   Description
  4308.  (Default)
  4309.  ─────────────────────────────────────────────────────────────────────────────
  4310.                               Arg ? Environment        Displays all current
  4311.                                                         environment-variable s
  4312.  
  4313.                                Meta Environment         Performs environment "
  4314.                                                         all environment variab
  4315.                                                         the current line, when
  4316.                                                         variable appears in th
  4317.                                                         syntax:
  4318.  
  4319.                                                         $(environment-variable
  4320.  
  4321.                                                         or
  4322.  
  4323.                                                         $(environ:)
  4324.  
  4325.                                                         For each such environm
  4326.                                                         appearing on the line,
  4327.                                                         the variable with the
  4328.  Function                      Syntax                   Description
  4329.  (Default)
  4330.  ─────────────────────────────────────────────────────────────────────────────
  4331.                                                        the variable with the
  4332.                                                         setting.
  4333.  
  4334.                                Arg Meta Environment     Performs environment m
  4335.                                                         description above) for
  4336.                                                         from the cursor positi
  4337.                                                         of the line.
  4338.  
  4339.                                Arg linearg Meta         Performs environment m
  4340.                                Environment Arg boxarg   description above) for
  4341.                                Meta                     highlighted text.
  4342.                                 Environment Arg
  4343.                                streamarg Meta
  4344.                                  Environment
  4345.  
  4346.  Execute                       Execute                  Executes a PWB functio
  4347.  (F7)                                                   macrolist.
  4348.  
  4349.  Function                      Syntax                   Description
  4350.  (Default)
  4351.  ─────────────────────────────────────────────────────────────────────────────
  4352. 
  4353.                                Arg Execute              Treats the line from t
  4354.                                                         cursor position to the
  4355.                                                         series of PWB commands
  4356.                                                         executes them.
  4357.  
  4358.                                Arg linearg Execute      Treats the specified t
  4359.                                Arg textarg Execute      commands and executes
  4360.                                                         following the standard
  4361.                                                         macro execution.
  4362.  
  4363.  Exit                          Exit                     Exits PWB. If the auto
  4364.  (F8)                                                   is set
  4365.                                                         to yes, the file in me
  4366.                                                         automatically saved. I
  4367.                                                         files are specified on
  4368.                                                         line, PWB proceeds to
  4369.                                                         file.
  4370.  Function                      Syntax                   Description
  4371.  (Default)
  4372.  ─────────────────────────────────────────────────────────────────────────────
  4373.                                                        file.
  4374.  
  4375.                                Meta Exit                Performs similarly to
  4376.                                                         that the current file
  4377.  
  4378.                                Arg Exit                 Performs similarly to
  4379.                                                         that if multiple files
  4380.                                                         specified on the comma
  4381.                                                         exits without advancin
  4382.                                                         file.
  4383.  
  4384.                                Arg Meta Exit            Performs similarly to
  4385.                                                         except that PWB does n
  4386.                                                         current file.
  4387.  
  4388.  Graphic                       Graphic                  Inserts the ASCII valu
  4389.  ( ' )                                                  specified key into the
  4390.  
  4391.  Function                      Syntax                   Description
  4392.  (Default)
  4393.  ─────────────────────────────────────────────────────────────────────────────
  4394. 
  4395.  Home                          Home                     Places the cursor in t
  4396.  (Keypad 5)                                             corner of the current
  4397.  
  4398.  Information                   Information              Loads an information f
  4399.  (SHIFT+F10)                                            contains a list of all
  4400.                                                         memory along with the
  4401.                                                         of files that you have
  4402.                                                         size of this list is c
  4403.                                                         the tmpsav switch, whi
  4404.                                                         default value of 20.
  4405.  
  4406.  Initialize                    Initialize               Reads all the editor s
  4407.  (SHIFT+F8)                                             from the [PWB] section
  4408.  
  4409.                                Arg Initialize           Reads the editor state
  4410.                                                         the TOOLS.INI file, us
  4411.                                                         continuous string of n
  4412.  Function                      Syntax                   Description
  4413.  (Default)
  4414.  ─────────────────────────────────────────────────────────────────────────────
  4415.                                                        continuous string of n
  4416.                                                         characters, starting w
  4417.                                                         initial cursor positio
  4418.                                                         name.
  4419.  
  4420.                                Arg textarg Initialize   Reads all the editor s
  4421.                                                         from the [PWB-textarg]
  4422.                                                         TOOLS.INI.
  4423.  
  4424.  Insert                        Insert                   Inserts a single blank
  4425.                                                         current cursor positio
  4426.  
  4427.                                Arg Insert               Inserts a carriage ret
  4428.                                                         initial cursor positio
  4429.                                                         the line.
  4430.  
  4431.                                Arg streamarg Insert     Inserts blank spaces i
  4432.                                Arg linearg Insert       highlighted area.
  4433.  Function                      Syntax                   Description
  4434.  (Default)
  4435.  ─────────────────────────────────────────────────────────────────────────────
  4436.                               Arg linearg Insert       highlighted area.
  4437.                                Arg boxarg Insert
  4438.  
  4439.  Insertmode                    Insertmode               Toggles between insert
  4440.  (INS or CTRL+V)                                        overtype mode.
  4441.  
  4442.  Lastselect                    Lastselect               Recalls the last curso
  4443.  (CTRL+U)                                               argument. This functio
  4444.                                                         the same result as ret
  4445.                                                         last Arg position, inv
  4446.                                                         function, and then rec
  4447.                                                         last cursor-movement a
  4448.  
  4449.  Lasttext                      Lasttext                 Recalls the last texta
  4450.  (CTRL+O)                                               function produces the
  4451.                                                         as typing arg once and
  4452.                                                         retyping the previous
  4453.  
  4454.  Function                      Syntax                   Description
  4455.  (Default)
  4456.  ─────────────────────────────────────────────────────────────────────────────
  4457. 
  4458.  Ldelete                       Ldelete                  Deletes the current li
  4459.  (CTRL+Y)                                               it in the Clipboard.
  4460.  
  4461.                                Arg Ldelete              Deletes text, starting
  4462.                                                         initial cursor positio
  4463.                                                         end of the line, and p
  4464.                                                         the Clipboard. Note th
  4465.                                                         not join the current l
  4466.                                                         next line.
  4467.  
  4468.                                Arg boxarg Ldelete       Deletes the specified
  4469.                                Arg linearg Ldelete      file and places it in
  4470.                                                         treating the argument
  4471.                                                         or boxarg regardless o
  4472.                                                         PWB is in.
  4473.  
  4474.  Left                          Left                     Moves the cursor one c
  4475.  Function                      Syntax                   Description
  4476.  (Default)
  4477.  ─────────────────────────────────────────────────────────────────────────────
  4478. Left                          Left                     Moves the cursor one c
  4479.  (LEFT or CTRL+S)                                       the left. If this resu
  4480.                                                         cursor moving out of t
  4481.                                                         the window is adjusted
  4482.                                                         by the number of colum
  4483.                                                         by the hscroll switch.
  4484.  
  4485.                                Meta Left                Moves the cursor to th
  4486.                                                         position in the window
  4487.                                                         line.
  4488.  
  4489.  Linsert                       Linsert                  Inserts one blank line
  4490.  (CTRL+N)                                               current line.
  4491.  
  4492.                                Arg Linsert              Inserts or deletes bla
  4493.                                                         beginning of a line to
  4494.                                                         first nonblank charact
  4495.                                                         under the cursor.
  4496.  Function                      Syntax                   Description
  4497.  (Default)
  4498.  ─────────────────────────────────────────────────────────────────────────────
  4499.                                                        under the cursor.
  4500.  
  4501.                                Arg boxarg Linsert       Fills the specified ar
  4502.                                Arg linearg Linsert      blanks, treating the a
  4503.                                                         linearg or boxarg rega
  4504.                                                         what mode PWB is in.
  4505.  
  4506.  Mark                          Mark                     Moves the cursor to th
  4507.  (CTRL+M)                                               of
  4508.                                                         the file.
  4509.  
  4510.                                Arg Mark                 Restores the cursor to
  4511.                                                         location. PWB remember
  4512.                                                         location prior to the
  4513.                                                         movement.
  4514.  
  4515.                                Arg numarg Mark          Moves the cursor to th
  4516.                                                         of the specified line,
  4517.  Function                      Syntax                   Description
  4518.  (Default)
  4519.  ─────────────────────────────────────────────────────────────────────────────
  4520.                                                        of the specified line,
  4521.                                                         specifies the line num
  4522.                                                         file.
  4523.  
  4524.                                Arg textarg Mark         Moves the cursor to th
  4525.                                                         file marker.
  4526.  
  4527.                                Arg Arg textarg Mark     Defines a file marker
  4528.                                                         initial cursor positio
  4529.                                                         markfile switch contai
  4530.                                                         name for saving marks,
  4531.                                                         be added to the file w
  4532.                                                         PWB.
  4533.  
  4534.                                Arg Arg textarg Meta     Deletes a marker defin
  4535.                                Mark
  4536.  
  4537.  Maximize                      Maximize                 Expands the window to
  4538.  Function                      Syntax                   Description
  4539.  (Default)
  4540.  ─────────────────────────────────────────────────────────────────────────────
  4541. Maximize                      Maximize                 Expands the window to
  4542.  (CTRL+F10)                                             size.
  4543.  
  4544.                                Meta Maximize            Restores the window to
  4545.                                                         size.
  4546.  
  4547.  Message                       Message                  Clears the dialog line
  4548.  
  4549.                                Arg textarg Message      Prints the text argume
  4550.                                                         dialog line.
  4551.  
  4552.                                Meta Message             Forces a screen update
  4553.  
  4554.  Meta                          Meta                     Modifies the action of
  4555.  (F9)                                                   it is used with. Refer
  4556.                                                         individual functions f
  4557.                                                         information.
  4558.  
  4559.  Function                      Syntax                   Description
  4560.  (Default)
  4561.  ─────────────────────────────────────────────────────────────────────────────
  4562. 
  4563.  Mgrep                         Mgrep                    Searches for the previ
  4564.                                                         string or pattern. PWB
  4565.                                                         files listed in the mg
  4566.  
  4567.                                Arg Mgrep                Searches files for the
  4568.                                                         defined as the charact
  4569.                                                         initial cursor positio
  4570.                                                         first blank character.
  4571.  
  4572.                                Arg textarg Mgrep        Searches files for the
  4573.                                                         text.
  4574.  
  4575.                                Arg Arg Mgrep            Searches files for the
  4576.                                                         expression defined as
  4577.                                                         characters from the in
  4578.                                                         position to the first
  4579.                                                         character.
  4580.  Function                      Syntax                   Description
  4581.  (Default)
  4582.  ─────────────────────────────────────────────────────────────────────────────
  4583.                                                        character.
  4584.  
  4585.                                Arg Arg textarg Mgrep    Searches files for a r
  4586.                                                         expression as defined
  4587.  
  4588.                                Meta Mgrep               Performs similarly to
  4589.                                Arg Meta Mgrep           form above, except tha
  4590.                                Arg textarg Meta Mgrep   of the case switch is
  4591.                                Arg Arg Meta Mgrep       reversed.
  4592.                                Arg Arg textarg Meta
  4593.                                Mgrep
  4594.  
  4595.  Mlines                        Mlines                   Moves the window back
  4596.  (CTRL+W)                                               of lines specified by
  4597.                                                         switch.
  4598.  
  4599.                                Arg Mlines               Moves the window until
  4600.                                                         that the cursor is on
  4601.  Function                      Syntax                   Description
  4602.  (Default)
  4603.  ─────────────────────────────────────────────────────────────────────────────
  4604.                                                        that the cursor is on
  4605.                                                         bottom of the window.
  4606.  
  4607.                                Arg numarg Mlines        Moves the window back
  4608.                                                         specified number of li
  4609.  
  4610.  Mpage                         Mpage                    Moves backward in the
  4611.  (PGUP or CTRL+R)                                       window.
  4612.  
  4613.  Mpara                         Mpara                    Moves the cursor to th
  4614.                                                         line preceding the cur
  4615.                                                         paragraph.
  4616.  
  4617.                                Meta Mpara               Moves the cursor to th
  4618.                                                         previous line that has
  4619.  
  4620.  Mreplace                      Mreplace                 Performs a search-and-
  4621.                                                         across multiple files,
  4622.  Function                      Syntax                   Description
  4623.  (Default)
  4624.  ─────────────────────────────────────────────────────────────────────────────
  4625.                                                        across multiple files,
  4626.                                                         for the search and rep
  4627.                                                         strings, and prompting
  4628.                                                         occurrence for confirm
  4629.                                                         function searches all
  4630.                                                         in the mgreplist macro
  4631.  
  4632.                                Arg Arg Mreplace         Performs the same acti
  4633.                                                         Mreplace, but uses
  4634.                                                         regular-expression syn
  4635.  
  4636.  Msearch                       Msearch                  Searches backward for
  4637.  (F4)                                                   previously defined str
  4638.                                                         pattern. If the string
  4639.                                                         is found, the window i
  4640.                                                         display it and the mat
  4641.                                                         or pattern is highligh
  4642.                                                         match is found, no cur
  4643.  Function                      Syntax                   Description
  4644.  (Default)
  4645.  ─────────────────────────────────────────────────────────────────────────────
  4646.                                                        match is found, no cur
  4647.                                                         takes place and a mess
  4648.                                                         displayed.
  4649.  
  4650.                                Arg Msearch              Searches backward in t
  4651.                                                         the string defined as
  4652.                                                         characters from the in
  4653.                                                         position to the first
  4654.                                                         character.
  4655.  
  4656.                                Arg streamarg Msearch    Searches backward for
  4657.                                Arg textarg Msearch      text.
  4658.  
  4659.                                Arg Arg Msearch          Searches backward in t
  4660.                                                         the regular expression
  4661.                                                         the characters from th
  4662.                                                         cursor position to the
  4663.                                                         character.
  4664.  Function                      Syntax                   Description
  4665.  (Default)
  4666.  ─────────────────────────────────────────────────────────────────────────────
  4667.                                                        character.
  4668.  
  4669.                                Arg Arg textarg Msearch  Searches backward for
  4670.                                                         expression as defined
  4671.  
  4672.                                Meta Msearch             Performs similarly to
  4673.                                Arg Meta Msearch         form above, except tha
  4674.                                Arg textarg Meta         of the case switch is
  4675.                                Msearch                  reversed.
  4676.                                Arg Arg Meta Msearch
  4677.                                Arg Arg textarg Meta
  4678.                                  Msearch
  4679.  
  4680.  Mword                         Mword                    Moves the cursor to th
  4681.  (CTRL+LEFT                                             of the current word. I
  4682.  or CTRL+A)                                             is not currently in a
  4683.                                                         at the first character
  4684.                                                         the beginning of the p
  4685.  Function                      Syntax                   Description
  4686.  (Default)
  4687.  ─────────────────────────────────────────────────────────────────────────────
  4688.                                                        the beginning of the p
  4689.  
  4690.                                Meta Mword               Moves the cursor to th
  4691.                                                         right of the previous
  4692.  
  4693.  Newline                       Newline                  Moves the cursor to a
  4694.  (SHIFT+ENTER)                                          tries to place the cur
  4695.                                                         appropriate position b
  4696.                                                         type of file. If the f
  4697.                                                         program and the softcr
  4698.                                                         set, PWB tries to tab
  4699.                                                         based on continuation
  4700.                                                         open blocks. If the ne
  4701.                                                         blank,  PWB places the
  4702.                                                         the column correspondi
  4703.                                                         first
  4704.                                                         nonblank character of
  4705.                                                         line. If neither of th
  4706.  Function                      Syntax                   Description
  4707.  (Default)
  4708.  ─────────────────────────────────────────────────────────────────────────────
  4709.                                                        line. If neither of th
  4710.                                                         true,  PWB places the
  4711.                                                         first nonblank charact
  4712.                                                         line.
  4713.  
  4714.                                Meta Newline             Moves the cursor to co
  4715.  
  4716.                                                         next line.
  4717.  
  4718.  Nextmsg                       Nextmsg                  Advances to the next e
  4719.  (SHIFT+F3)
  4720.  
  4721.                                Arg numarg Nextmsg       Moves forward or backw
  4722.                                                         error messages. A numa
  4723.                                                         moves to the next mess
  4724.                                                         of -1 moves back to th
  4725.                                                         message.
  4726.  
  4727.  Function                      Syntax                   Description
  4728.  (Default)
  4729.  ─────────────────────────────────────────────────────────────────────────────
  4730. 
  4731.                                Arg Nextmsg              Moves to the next erro
  4732.                                                         (within the current se
  4733.                                                         that does not refer to
  4734.                                                         file.
  4735.  
  4736.                                Arg Arg Nextmsg          Positions the text-fil
  4737.                                                         the line with the erro
  4738.                                                         in the error message a
  4739.                                                         cursor position in the
  4740.                                                         pseudofile. This messa
  4741.                                                         the current error mess
  4742.                                                         equivalent of Nextmsg
  4743.                                                         arguments is executed.
  4744.                                                         following Nextmsg comm
  4745.                                                         the next error message
  4746.                                                         <compile> pseudofile.
  4747.  
  4748.  Function                      Syntax                   Description
  4749.  (Default)
  4750.  ─────────────────────────────────────────────────────────────────────────────
  4751. 
  4752.                                Meta Nextmsg             OS/2 only. Advance to
  4753.                                                         of error messages, in
  4754.                                                         corresponds to all the
  4755.                                                         messages for a single
  4756.                                                         After this command is
  4757.                                                         previous set is delete
  4758.                                                         can still view all sub
  4759.                                                         of error messages in t
  4760.                                                         pseudofile until it is
  4761.                                                         deleted).
  4762.  
  4763.  
  4764.  
  4765.  PWB Functions (continued)
  4766.  
  4767. ╓┌────────────────────────────┌─────────────────────────────┌────────────────
  4768.  Function (Default)           Syntax                        Description
  4769.  Function (Default)           Syntax                        Description
  4770.  ─────────────────────────────────────────────────────────────────────────────
  4771.  Noedit                       Noedit                        Reverses the no-ed
  4772.                                                             condition, so that
  4773.                                                             was started with t
  4774.                                                             (read-only) option
  4775.                                                             command removes th
  4776.                                                             limitation. If PWB
  4777.                                                             the no-edit state,
  4778.                                                             command disallows
  4779.                                                             editing commands t
  4780.                                                             a file.
  4781.  
  4782.                               Meta Noedit                   Reverses the no-ed
  4783.                                                             condition for the
  4784.                                                             file.
  4785.  
  4786.  Paste                        Paste                         Inserts the conten
  4787.  (SHIFT+INS)                                                Clipboard above th
  4788.                                                             line if the conten
  4789.                                                             placed there in a
  4790.  Function (Default)           Syntax                        Description
  4791.  ─────────────────────────────────────────────────────────────────────────────
  4792.                                                            placed there in a
  4793.                                                             line-oriented way,
  4794.                                                             with linearg or nu
  4795.                                                             Otherwise, inserts
  4796.                                                             contents of the Cl
  4797.                                                             the current cursor
  4798.  
  4799.                               Arg streamarg Paste           Replaces the speci
  4800.                               Arg linearg Paste             with the contents
  4801.                               Arg boxarg Paste              Clipboard.
  4802.  
  4803.                               Arg Paste                     Inserts the text f
  4804.                                                             initial cursor pos
  4805.                                                             the end of the lin
  4806.                                                             initial cursor pos
  4807.  
  4808.                               Arg textarg Paste             Places the specifi
  4809.                                                             the Clipboard and
  4810.                                                             that text at the i
  4811.  Function (Default)           Syntax                        Description
  4812.  ─────────────────────────────────────────────────────────────────────────────
  4813.                                                            that text at the i
  4814.                                                             cursor position.
  4815.  
  4816.                               Arg Arg textarg Paste         Interprets textarg
  4817.                                                             name and inserts t
  4818.                                                             contents of that f
  4819.                                                             the current file a
  4820.                                                             current line.
  4821.  
  4822.                               Arg Arg !textarg Paste        Treats the text as
  4823.                                                             OS/2 command and i
  4824.                                                             output to stdout i
  4825.                                                             current file at th
  4826.                                                             cursor position.
  4827.  
  4828.  Pbal                         Pbal                          Scans backward thr
  4829.  (CTRL+[)                                                   file, balancing pa
  4830.                                                             and brackets. The
  4831.                                                             unbalanced one is
  4832.  Function (Default)           Syntax                        Description
  4833.  ─────────────────────────────────────────────────────────────────────────────
  4834.                                                            unbalanced one is
  4835.                                                             highlighted when f
  4836.                                                             it is found and is
  4837.                                                             visible, PWB displ
  4838.                                                             matching line on t
  4839.                                                             line, with the hig
  4840.                                                             matching character
  4841.                                                             corresponding char
  4842.                                                             placed into the fi
  4843.                                                             current cursor pos
  4844.                                                             Note that the sear
  4845.                                                             not include the cu
  4846.                                                             cursor position an
  4847.                                                             scan looks only fo
  4848.                                                             left brackets or p
  4849.                                                             than right, not ju
  4850.                                                             unequal number.
  4851.  
  4852.                               Arg Pbal                      Performs similarly
  4853.  Function (Default)           Syntax                        Description
  4854.  ─────────────────────────────────────────────────────────────────────────────
  4855.                              Arg Pbal                      Performs similarly
  4856.                                                             except that it sca
  4857.                                                             in the file and lo
  4858.                                                             more right bracket
  4859.                                                             parentheses than l
  4860.  
  4861.                               Meta Pbal                     Performs similarly
  4862.                                                             except that the fi
  4863.                                                             updated.
  4864.  
  4865.                               Arg Meta Pbal                 Performs similarly
  4866.                                                             Pbal, except that
  4867.                                                             is not updated.
  4868.  
  4869.  Plines                       Plines                        Adjusts the cursor
  4870.  (CTRL+Z)                                                   by the number of l
  4871.                                                             specified by the v
  4872.                                                             switch.
  4873.  
  4874.  Function (Default)           Syntax                        Description
  4875.  ─────────────────────────────────────────────────────────────────────────────
  4876. 
  4877.                               Arg Plines                    Moves the cursor d
  4878.                                                             the line that the
  4879.                                                             on is at the top o
  4880.                                                             window.
  4881.  
  4882.                               Arg numarg Plines             Moves the cursor f
  4883.                                                             specified number o
  4884.  
  4885.  Ppage                        Ppage                         Moves forward in t
  4886.  (PGDN or                                                   one window.
  4887.  CTRL+C)
  4888.  
  4889.  Ppara                        Ppara                         Moves the cursor f
  4890.                                                             paragraph and plac
  4891.                                                             cursor on the firs
  4892.                                                             the new paragraph.
  4893.  
  4894.                               Meta Ppara                    Moves the cursor t
  4895.  Function (Default)           Syntax                        Description
  4896.  ─────────────────────────────────────────────────────────────────────────────
  4897.                              Meta Ppara                    Moves the cursor t
  4898.                                                             first blank line f
  4899.                                                             the current paragr
  4900.  
  4901.  Print                        Print                         Prints the current
  4902.                                                             the printcmd switc
  4903.                                                             this function uses
  4904.                                                             system-level comma
  4905.                                                             in the switch. Oth
  4906.                                                             the function copie
  4907.                                                             to LPT1.
  4908.  
  4909.                               Arg textarg Print             Prints all the fil
  4910.                                                             in the text argume
  4911.                                                             names should be se
  4912.                                                             with a space. Macr
  4913.                                                             lists are allowed.
  4914.  
  4915.                               Arg linearg Print             Prints the highlig
  4916.  Function (Default)           Syntax                        Description
  4917.  ─────────────────────────────────────────────────────────────────────────────
  4918.                              Arg linearg Print             Prints the highlig
  4919.                               Arg boxarg Print
  4920.                               Arg streamarg Print
  4921.  
  4922.  Prompt                       Prompt                        Allows macros to p
  4923.                                                             text arguments.
  4924.  
  4925.                               Arg Prompt                    Uses the text from
  4926.                                                             cursor to the end
  4927.                                                             line as the prompt
  4928.  
  4929.                               Arg textarg Prompt            Uses the specified
  4930.                                                             argument as the pr
  4931.  
  4932.                               Arg linearg Prompt            Uses the selected
  4933.                               Arg boxarg Prompt             the first line of
  4934.                               Arg streamarg Prompt          selected area as t
  4935.  
  4936.                               Meta Prompt                   Uses the selected
  4937.  Function (Default)           Syntax                        Description
  4938.  ─────────────────────────────────────────────────────────────────────────────
  4939.                              Meta Prompt                   Uses the selected
  4940.                                                             the first line of
  4941.                                                             selected area as t
  4942.                                                             and passes it to t
  4943.                                                             function.
  4944.  
  4945.  Psearch                      Psearch                       Searches forward f
  4946.  (F3)                                                       previously defined
  4947.                                                             pattern. If the st
  4948.                                                             pattern is found,
  4949.                                                             is moved to displa
  4950.                                                             the matched string
  4951.                                                             pattern is highlig
  4952.                                                             it is not found, t
  4953.                                                             does not move and
  4954.                                                             is displayed.
  4955.  
  4956.                               Arg Psearch                   Searches forward i
  4957.                                                             for the string def
  4958.  Function (Default)           Syntax                        Description
  4959.  ─────────────────────────────────────────────────────────────────────────────
  4960.                                                            for the string def
  4961.                                                             the characters fro
  4962.                                                             initial cursor pos
  4963.                                                             the first blank ch
  4964.  
  4965.                               Arg textarg Psearch           Searches forward f
  4966.                                                             specified text.
  4967.  
  4968.                               Arg Arg Psearch               Searches forward i
  4969.                                                             for the regular ex
  4970.                                                             defined as the cha
  4971.                                                             from the initial c
  4972.                                                             position to the fi
  4973.                                                             character.
  4974.  
  4975.                               Arg Arg textarg Psearch       Searches forward f
  4976.                                                             regular expression
  4977.                                                             defined by textarg
  4978.  
  4979.  Function (Default)           Syntax                        Description
  4980.  ─────────────────────────────────────────────────────────────────────────────
  4981. 
  4982.                               Meta Psearch                  Performs similarly
  4983.                               Arg Meta Psearch              command form above
  4984.                               Arg textarg Meta Psearch      that the value of
  4985.                               Arg Arg Meta Psearch          switch is temporar
  4986.                               Arg Arg textarg Meta          reversed.
  4987.                                 Psearch
  4988.  
  4989.  Pwbhelp                      Pwbhelp                       Microsoft Advisor
  4990.                                                             screens.
  4991.  
  4992.                               Arg Pwbhelp                   Displays help on t
  4993.                                                             at the cursor posi
  4994.  
  4995.                               Arg                           Displays help on t
  4996.                               single-line-cursor-movement   argument highlight
  4997.                               Pwbhelp                       screen.
  4998.  
  4999.                               Arg textarg Pwbhelp           Displays help on t
  5000.  Function (Default)           Syntax                        Description
  5001.  ─────────────────────────────────────────────────────────────────────────────
  5002.                              Arg textarg Pwbhelp           Displays help on t
  5003.                                                             specified text arg
  5004.  
  5005.                               Meta Pwbhelp                  Prompts the user f
  5006.                                                             keystroke and disp
  5007.                                                             on the function as
  5008.                                                             with that keystrok
  5009.                                                             this command to wo
  5010.                                                             cursor cannot be r
  5011.                                                             a help topic.
  5012.  
  5013.  Pwbhelpnext                  Pwbhelpnext                   Displays the next
  5014.  (CTRL+F1)                                                  topic in the
  5015.                                                             Microsoft Advisor
  5016.                                                             system.
  5017.  
  5018.                               Meta Pwbhelpnext              Displays the previ
  5019.                                                             topic on the backt
  5020.  
  5021.  Function (Default)           Syntax                        Description
  5022.  ─────────────────────────────────────────────────────────────────────────────
  5023. 
  5024.                               Arg Pwbhelpnext               Displays the next
  5025.                                                             of the current hel
  5026.                                                             within the Microso
  5027.                                                             help system.
  5028.  
  5029.  Pword                        Pword                         Moves the cursor f
  5030.  (CTRL+RIGHT                                                the beginning of t
  5031.  or CTRL+F)                                                 word.
  5032.  
  5033.                               Meta Pword                    Moves the cursor t
  5034.                                                             immediate right of
  5035.                                                             current word or, i
  5036.                                                             cursor is not in a
  5037.                                                             the right of the n
  5038.  
  5039.  Qreplace                     Qreplace                      Performs a
  5040.  (CTRL+\)                                                   search-and-replace
  5041.                                                             prompting for the
  5042.  Function (Default)           Syntax                        Description
  5043.  ─────────────────────────────────────────────────────────────────────────────
  5044.                                                            prompting for the
  5045.                                                             replacement string
  5046.                                                             prompting at each
  5047.                                                             for confirmation.
  5048.                                                             begins at the curs
  5049.                                                             position and conti
  5050.                                                             through the end of
  5051.  
  5052.                               Arg boxarg Qreplace           Performs the
  5053.                               Arg linearg Qreplace          search-and-replace
  5054.                               Arg streamarg Qreplace        the highlighted ar
  5055.                                                             prompting at each
  5056.                                                             for confirmation.
  5057.  
  5058.                               Arg markarg Qreplace          Performs the
  5059.                                                             search-and-replace
  5060.                                                             the cursor positio
  5061.                                                             specified file mar
  5062.                                                             prompting at each
  5063.  Function (Default)           Syntax                        Description
  5064.  ─────────────────────────────────────────────────────────────────────────────
  5065.                                                            prompting at each
  5066.                                                             for confirmation.
  5067.  
  5068.                               Arg numarg Qreplace           Performs the
  5069.                                                             search-and-replace
  5070.                                                             specified number o
  5071.                                                             starting with the
  5072.                                                             line, prompting at
  5073.                                                             occurrence for con
  5074.  
  5075.                               Arg Arg Qreplace              Performs the same
  5076.                               Arg Arg boxarg Qreplace       corresponding comm
  5077.                               Arg Arg linearg Qreplace      above, except that
  5078.                               Arg Arg streamarg Qreplace    search pattern is
  5079.                               Arg Arg markarg Qreplace      expression and the
  5080.                               Arg Arg numarg Qreplace       replacement patter
  5081.                                                             select special tag
  5082.                                                             sections of the se
  5083.                                                             selective replacem
  5084.  Function (Default)           Syntax                        Description
  5085.  ─────────────────────────────────────────────────────────────────────────────
  5086.                                                            selective replacem
  5087.  
  5088.  Quote                        Quote                         Reads one keystrok
  5089.  (CTRL+P)                                                   keyboard and treat
  5090.                                                             literally.
  5091.  
  5092.  Record                       Record                        Toggles the macro
  5093.  (SHIFT+CTRL+R)                                             When a recording i
  5094.                                                             PWB assigns all th
  5095.                                                             commands to the de
  5096.                                                             macro name RECORDV
  5097.                                                             During the recordi
  5098.                                                             name of each comma
  5099.                                                             written to the <re
  5100.                                                             pseudofile, which
  5101.                                                             placed in a window
  5102.                                                             viewed as it is dy
  5103.                                                             updated.
  5104.  
  5105.  Function (Default)           Syntax                        Description
  5106.  ─────────────────────────────────────────────────────────────────────────────
  5107. 
  5108.                               Arg textarg Record            Toggles the macro
  5109.                                                             and names the macr
  5110.  
  5111.                               Meta Record                   Toggles the macro
  5112.                                                             but no editing com
  5113.                                                             executed until the
  5114.                                                             is turned off.
  5115.  
  5116.                               Arg Record                    Performs identical
  5117.                               Arg Arg textarg Record        corresponding comm
  5118.                               Arg Arg Meta Record           above, but appends
  5119.                                                             commands to the en
  5120.                                                             macro.
  5121.  
  5122.  Refresh                      Refresh                       Asks for confirmat
  5123.  (SHIFT+F7)                                                 then rereads the f
  5124.                                                             disk, discarding a
  5125.                                                             since the file was
  5126.  Function (Default)           Syntax                        Description
  5127.  ─────────────────────────────────────────────────────────────────────────────
  5128.                                                            since the file was
  5129.                                                             saved.
  5130.  
  5131.                               Arg Refresh                   Asks for confirmat
  5132.                                                             then discards the
  5133.                                                             memory and from th
  5134.                                                             history. The most
  5135.                                                             edited previous fi
  5136.                                                             the current file.
  5137.  
  5138.  Repeat                       Repeat                        Repeats the last e
  5139.                                                             command, using pre
  5140.                                                             same arguments and
  5141.                                                             condition used by
  5142.                                                             command. However,
  5143.                                                             command is execute
  5144.                                                             to the new cursor
  5145.  
  5146.                               Arg numarg Repeat             Performs the last
  5147.  Function (Default)           Syntax                        Description
  5148.  ─────────────────────────────────────────────────────────────────────────────
  5149.                              Arg numarg Repeat             Performs the last
  5150.                                                             command for the nu
  5151.                                                             times specified by
  5152.                                                             Note that Repeat m
  5153.                                                             assigned to a key
  5154.                                                             execute this comma
  5155.  
  5156.  Replace                      Replace                       Performs a
  5157.  (CTRL+L)                                                   search-and-replace
  5158.                                                             confirmation, prom
  5159.                                                             the search string
  5160.                                                             replacement string
  5161.                                                             search begins at t
  5162.                                                             position and conti
  5163.                                                             through the end of
  5164.  
  5165.                               Arg boxarg Replace            Performs the
  5166.                               Arg linearg Replace           search-and-replace
  5167.                               Arg streamarg Replace         highlighted area.
  5168.  Function (Default)           Syntax                        Description
  5169.  ─────────────────────────────────────────────────────────────────────────────
  5170.                              Arg streamarg Replace         highlighted area.
  5171.  
  5172.                               Arg markarg Replace           Performs the
  5173.                                                             search-and-replace
  5174.                                                             the cursor and the
  5175.                                                             file marker.
  5176.  
  5177.                               Arg numarg Replace            Performs the
  5178.                                                             search-and-replace
  5179.                                                             specified number o
  5180.                                                             starting with the
  5181.                                                             line.
  5182.  
  5183.                               Arg Arg Replace               Performs the same
  5184.                               Arg Arg boxarg Replace        corresponding comm
  5185.                               Arg Arg linearg Replace       above, except that
  5186.                               Arg Arg streamarg Replace     search pattern is
  5187.                               Arg Arg markarg Replace       expression and the
  5188.                               Arg Arg numarg Replace        replacement patter
  5189.  Function (Default)           Syntax                        Description
  5190.  ─────────────────────────────────────────────────────────────────────────────
  5191.                              Arg Arg numarg Replace        replacement patter
  5192.                                                             select special tag
  5193.                                                             sections of the se
  5194.                                                             selective replacem
  5195.  
  5196.  Resize                       Resize                        Enlarges or shrink
  5197.  (CTRL+F8)                                                  active window. You
  5198.                                                             at least two windo
  5199.                                                             use this function.
  5200.  
  5201.  Restcur                      Restcur                       Restores the curso
  5202.                                                             saved with Savecur
  5203.  
  5204.  Right (RIGHT or CTRL+D)      Right                         Moves the cursor o
  5205.                                                             character to the r
  5206.                                                             this would move th
  5207.                                                             off the screen, th
  5208.                                                             moves right by the
  5209.                                                             columns specified
  5210.  Function (Default)           Syntax                        Description
  5211.  ─────────────────────────────────────────────────────────────────────────────
  5212.                                                            columns specified
  5213.                                                             hscroll switch.
  5214.  
  5215.                               Meta Right                    Moves the cursor t
  5216.                                                             window's rightmost
  5217.  
  5218.  Saveall                      Saveall                       Saves to disk all
  5219.                                                             have been altered
  5220.                                                             yet saved.
  5221.  
  5222.  Savecur                      Savecur                       Saves the current
  5223.                                                             position. Restores
  5224.                                                             Restcur.
  5225.  
  5226.  Sdelete                      Sdelete                       Deletes the single
  5227.                                                             under the cursor,
  5228.                                                             line breaks. It do
  5229.                                                             place the deleted
  5230.                                                             in the Clipboard.
  5231.  Function (Default)           Syntax                        Description
  5232.  ─────────────────────────────────────────────────────────────────────────────
  5233.                                                            in the Clipboard.
  5234.  
  5235.                               Arg Sdelete                   Deletes from the c
  5236.                                                             line at the point
  5237.                                                             cursor position.Th
  5238.                                                             deleted (including
  5239.                                                             break) is placed i
  5240.                                                             Clipboard.
  5241.  
  5242.                               Arg streamarg Sdelete         Deletes the stream
  5243.                                                             from the initial c
  5244.                                                             position up to the
  5245.                                                             cursor position an
  5246.                                                             it in the Clipboar
  5247.                                                             regardless of the
  5248.                                                             selection mode.
  5249.  
  5250.  Searchall                    Searchall                     Highlights all occ
  5251.                                                             of the previously
  5252.  Function (Default)           Syntax                        Description
  5253.  ─────────────────────────────────────────────────────────────────────────────
  5254.                                                            of the previously
  5255.                                                             string or pattern.
  5256.                                                             string exists in t
  5257.                                                             the cursor moves t
  5258.                                                             first occurrence.
  5259.  
  5260.                               Arg Searchall                 Highlights all occ
  5261.                                                             of the string defi
  5262.                                                             characters from th
  5263.                                                             cursor position to
  5264.                                                             blank character.
  5265.  
  5266.                               Arg textarg Searchall         Highlights all occ
  5267.                                                             of the specified t
  5268.  
  5269.                               Arg Arg Searchall             Highlights all occ
  5270.                                                             of the regular exp
  5271.                                                             defined as the cha
  5272.                                                             from the initial c
  5273.  Function (Default)           Syntax                        Description
  5274.  ─────────────────────────────────────────────────────────────────────────────
  5275.                                                            from the initial c
  5276.                                                             position to the fi
  5277.                                                             character.
  5278.  
  5279.                               Arg Arg textarg Searchall     Highlights all occ
  5280.                                                             of a regular expre
  5281.                                                             defined by textarg
  5282.  
  5283.                               Meta Searchall                Performs similarly
  5284.                               Arg Meta Searchall            command above, exc
  5285.                               Arg textarg Meta Searchall    the value of the c
  5286.                               Arg Arg Meta Searchall        is temporarily rev
  5287.                               Arg Arg textarg Meta
  5288.                                 Searchall
  5289.  
  5290.  Selcur                       Selcur                        Selects a portion
  5291.                                                             (box, stream, or l
  5292.                                                             the current cursor
  5293.                                                             to an anchor marke
  5294.  Function (Default)           Syntax                        Description
  5295.  ─────────────────────────────────────────────────────────────────────────────
  5296.                                                            to an anchor marke
  5297.                                                             Savecur function.
  5298.  
  5299.  Selmode                      Selmode                       Toggles between st
  5300.                                                             line mode, and box
  5301.  
  5302.  Select                       Select                        In combination wit
  5303.  (SHIFT+DOWN)                                               cursor-movement ke
  5304.                                                             a box, stream, or
  5305.                                                             text to be passed
  5306.                                                             PWB function.
  5307.  
  5308.  Setfile                      Setfile                       Switches to the pr
  5309.  (F2)                                                       edited file, savin
  5310.                                                             any changes made t
  5311.                                                             current file if th
  5312.                                                             switch is set to y
  5313.  
  5314.                               Arg Setfile                   Switches to the fi
  5315.  Function (Default)           Syntax                        Description
  5316.  ─────────────────────────────────────────────────────────────────────────────
  5317.                              Arg Setfile                   Switches to the fi
  5318.                                                             under the cursor b
  5319.                                                             at the initial cur
  5320.                                                             position.
  5321.  
  5322.                               Arg textarg Setfile           Switches to the fi
  5323.                                                             specified by texta
  5324.                                                             text argument is a
  5325.                                                             directory, PWB cha
  5326.                                                             current drive or d
  5327.  
  5328.                               Meta Setfile                  Performs similarly
  5329.                               Arg Meta Setfile              corresponding comm
  5330.                               Arg textarg Meta Setfile      above, but does no
  5331.                                                             changes made to th
  5332.                                                             file.
  5333.  
  5334.                               Arg Arg textarg Setfile       Saves the current
  5335.                                                             the name specified
  5336.  Function (Default)           Syntax                        Description
  5337.  ─────────────────────────────────────────────────────────────────────────────
  5338.                                                            the name specified
  5339.                                                             textarg.
  5340.  
  5341.                               Arg Arg Setfile               Saves the current
  5342.  
  5343.  Sethelp                      Sethelp                       Adds or deletes in
  5344.  (SHIFT+CTRL+S)                                             help files from th
  5345.                                                             files PWB searches
  5346.                                                             on-line help. Unli
  5347.                                                             helpfiles switch,
  5348.                                                             lists the complete
  5349.                                                             help files to be u
  5350.                                                             Sethelp adds or re
  5351.                                                             individual files f
  5352.                                                             help-file list wit
  5353.                                                             affecting the rest
  5354.                                                             list. Sethelp affe
  5355.                                                             the current PWB se
  5356.  
  5357.  Function (Default)           Syntax                        Description
  5358.  ─────────────────────────────────────────────────────────────────────────────
  5359. 
  5360.                               Arg Sethelp                   Adds the file name
  5361.                                                             current cursor pos
  5362.                                                             the list of help f
  5363.                                                             searched.
  5364.  
  5365.                               Arg streamarg Sethelp         Adds the highlight
  5366.                                                             name to the list o
  5367.                                                             searched.
  5368.  
  5369.                               Arg textarg Sethelp           Adds the file name
  5370.                                                             by textarg to the
  5371.                                                             help files searche
  5372.  
  5373.                               Arg ? Sethelp                 Lists all currentl
  5374.                                                             help files.
  5375.  
  5376.                               Arg Meta Sethelp              Removes the file n
  5377.                                                             the current cursor
  5378.  Function (Default)           Syntax                        Description
  5379.  ─────────────────────────────────────────────────────────────────────────────
  5380.                                                            the current cursor
  5381.                                                             from the list of h
  5382.                                                             searched.
  5383.  
  5384.                               Arg Streamarg Meta Sethelp    Removes the highli
  5385.                                                             name from the list
  5386.                                                             searched.
  5387.  
  5388.                               Arg textarg Meta Sethelp      Removes the file n
  5389.                                                             specified as texta
  5390.                                                             the list of files
  5391.  
  5392.  Setwindow                    Setwindow                     Redisplays the ent
  5393.  (CTRL+])
  5394.  
  5395.                               Arg Setwindow                 Adjusts the window
  5396.                                                             the initial cursor
  5397.                                                             becomes the home p
  5398.                                                             (upper left corner
  5399.  Function (Default)           Syntax                        Description
  5400.  ─────────────────────────────────────────────────────────────────────────────
  5401.                                                            (upper left corner
  5402.  
  5403.                               Meta Setwindow                Redisplays the cur
  5404.  
  5405.  Shell                        Shell                         Saves the current
  5406.  (SHIFT+F9)                                                 the autosave switc
  5407.                                                             to yes and runs th
  5408.                                                             shell.
  5409.  
  5410.                               Meta Shell                    Runs the command s
  5411.                                                             without saving the
  5412.                                                             file.
  5413.  
  5414.                               Arg Shell                     Uses the text on t
  5415.                                                             from the cursor up
  5416.                                                             end of the line as
  5417.                                                             to the shell.
  5418.  
  5419.                               Arg boxarg Shell              Treats each line o
  5420.  Function (Default)           Syntax                        Description
  5421.  ─────────────────────────────────────────────────────────────────────────────
  5422.                              Arg boxarg Shell              Treats each line o
  5423.                               Arg linearg Shell             argument as a sepa
  5424.                                                             command to the she
  5425.  
  5426.                               Arg textarg Shell             Uses textarg as a
  5427.                                                             the shell.
  5428.  
  5429.  Sinsert                      Sinsert                       Inserts a single b
  5430.  (CTRL+J)                                                   at the current cur
  5431.                                                             position.
  5432.  
  5433.                               Arg Sinsert                   Inserts a carriage
  5434.                                                             the initial cursor
  5435.                                                             splitting the line
  5436.  
  5437.                               Arg streamarg Sinsert         Inserts a stream o
  5438.                                                             between the initia
  5439.                                                             position and the c
  5440.                                                             cursor position.
  5441.  Function (Default)           Syntax                        Description
  5442.  ─────────────────────────────────────────────────────────────────────────────
  5443.                                                            cursor position.
  5444.  
  5445.  Tab                          Tab                           Moves the cursor t
  5446.  (TAB)                                                      tab stop. Tab stop
  5447.                                                             defined by the tab
  5448.                                                             switch.
  5449.  
  5450.  Tell                         Tell                          Prompts for a keys
  5451.  (CTRL+T)                                                   then displays the
  5452.                                                             the keystroke and
  5453.                                                             function assigned
  5454.                                                             the format functio
  5455.  
  5456.                               Arg Tell                      Identical to Tell,
  5457.                                                             the keystroke has
  5458.                                                             a macro attached,
  5459.                                                             MacroName:=MacroVa
  5460.  
  5461.                               Arg Arg Tell                  Prompts for a keys
  5462.  Function (Default)           Syntax                        Description
  5463.  ─────────────────────────────────────────────────────────────────────────────
  5464.                              Arg Arg Tell                  Prompts for a keys
  5465.                                                             then displays the
  5466.                                                             the macro attached
  5467.                                                             key. If a function
  5468.                                                             assigned to the ke
  5469.                                                             displays the name
  5470.                                                             function.
  5471.  
  5472.                               Arg textarg Tell              Performs like Arg
  5473.                                                             obtains the macro
  5474.                                                             a textarg rather t
  5475.                                                             keystroke.
  5476.  
  5477.                               Meta Tell                     Performs the same
  5478.                               Arg Meta Tell                 command listed abo
  5479.                               Arg Arg Meta Tell             PWB inserts the ou
  5480.                               Arg textarg Meta Tell         the file rather th
  5481.                                                             dialog line.
  5482.  
  5483.  Function (Default)           Syntax                        Description
  5484.  ─────────────────────────────────────────────────────────────────────────────
  5485. 
  5486.  Undo                         Undo                          Reverses the last
  5487.  (ALT+BKSP)                                                 change. The
  5488.                                                             undocount switch (
  5489.                                                             value: 10)
  5490.                                                             sets the limit for
  5491.                                                             command.
  5492.  
  5493.                               Meta Undo                     Recalls a command
  5494.                                                             canceled with Undo
  5495.                                                             command is often c
  5496.                                                             "redo."
  5497.  
  5498.  Up                           Up                            Moves the cursor u
  5499.  (UP or                                                     If this would move
  5500.  CTRL+E)                                                    cursor out of the
  5501.                                                             the window moves u
  5502.                                                             the number of line
  5503.                                                             specified by the v
  5504.  Function (Default)           Syntax                        Description
  5505.  ─────────────────────────────────────────────────────────────────────────────
  5506.                                                            specified by the v
  5507.                                                             switch.
  5508.  
  5509.                               Meta Up                       Moves the cursor t
  5510.                                                             of the window, ret
  5511.                                                             column position.
  5512.  
  5513.  Usercmd                      Usercmd                       Executes a command
  5514.                                                             the PWB Run menu b
  5515.  
  5516.                               Arg numarg Usercmd            Executes the given
  5517.                                                             user-customized co
  5518.                                                             the Run menu. The
  5519.                                                             be '1', '2', '3',
  5520.                                                             or '6'.
  5521.  
  5522.  Window                       Window                        Moves the cursor t
  5523.  (F6)                                                       window.
  5524.  
  5525.  Function (Default)           Syntax                        Description
  5526.  ─────────────────────────────────────────────────────────────────────────────
  5527. 
  5528.                               Arg Window                    Splits the current
  5529.                                                             horizontally at th
  5530.                                                             position. All wind
  5531.                                                             contain at least f
  5532.  
  5533.                               Arg Arg Window                Splits the current
  5534.                                                             vertically at the
  5535.                                                             position. All wind
  5536.                                                             contain at least t
  5537.  
  5538.                               Meta Window                   Closes the window.
  5539.  
  5540.  Winstyle                     Winstyle                      Toggles between wi
  5541.  (CTRL+F6)                                                  styles: two scroll
  5542.                                                             horizontal only, v
  5543.                                                             only, or no scroll
  5544.  
  5545.  ─────────────────────────────────────────────────────────────────────────────
  5546.  Function (Default)           Syntax                        Description
  5547.  ─────────────────────────────────────────────────────────────────────────────
  5548. ─────────────────────────────────────────────────────────────────────────────
  5549.  
  5550.  
  5551.  
  5552.  
  5553.  Return Values of PWB Functions
  5554.  
  5555.  The return values of PWB functions are useful in conditional macros.
  5556.  
  5557. ╓┌────────────┌──────────────────────────────┌───────────────────────────────╖
  5558.  Function     Returns TRUE                   Returns FALSE
  5559.  ────────────────────────────────────────────────────────────────────────────
  5560.  Arg          Always                         Never
  5561.  
  5562.  Assign       Assignment successful          Invalid assignment
  5563.  
  5564.  Backtab      Cursor moved                   Cursor at left margin
  5565.  
  5566.  Begfile      Cursor moved                   Cursor not moved
  5567.  Function     Returns TRUE                   Returns FALSE
  5568.  ────────────────────────────────────────────────────────────────────────────
  5569. Begfile      Cursor moved                   Cursor not moved
  5570.  
  5571.  Begline      Cursor moved                   Cursor not moved
  5572.  
  5573.  Cancel       Always                         Never
  5574.  
  5575.  Cdelete      Cursor moved                   Cursor not moved
  5576.  
  5577.  Compile      Compilation successfully       Compilation unsuccessfully
  5578.               initiated, or background       initiated, or background
  5579.               compilation running            compilation not running
  5580.  
  5581.  Copy         Always                         Never
  5582.  
  5583.  Curdate      Date inserted                  Insertion would make line too
  5584.                                              long
  5585.  
  5586.  Curday       Day inserted                   Insertion would make line too
  5587.                                              long
  5588.  Function     Returns TRUE                   Returns FALSE
  5589.  ────────────────────────────────────────────────────────────────────────────
  5590.                                             long
  5591.  
  5592.  Curfile      File inserted                  Insertion would make line too
  5593.                                              long
  5594.  
  5595.  Curfileext   File extension inserted        Insertion would make line too
  5596.                                              long
  5597.  
  5598.  Curfilenam   File name inserted             Insertion would make line too
  5599.                                              long
  5600.  
  5601.  Curtime      Time inserted                  Insertion would make line too
  5602.                                              long
  5603.  
  5604.  Delete       Always                         Never
  5605.  
  5606.  Down         Cursor moved                   Cursor not moved
  5607.  
  5608.  Emacscdel    Cursor moved                   Cursor not moved
  5609.  Function     Returns TRUE                   Returns FALSE
  5610.  ────────────────────────────────────────────────────────────────────────────
  5611. Emacscdel    Cursor moved                   Cursor not moved
  5612.  
  5613.  Emacsnewl    Always                         Never
  5614.  
  5615.  Endfile      Cursor moved                   Cursor not moved
  5616.  
  5617.  Endline      Cursor moved                   Cursor not moved
  5618.  
  5619.  Environment  Successful set or map          Syntax error or line too long
  5620.  
  5621.  Execute      Last command successful        Last command failed
  5622.  
  5623.  Exit         No return condition            No return condition
  5624.  
  5625.  Graphic      Character inserted             Insertion would make line too
  5626.                                              long
  5627.  
  5628.  Home         Cursor moved                   Cursor not moved
  5629.  
  5630.  Function     Returns TRUE                   Returns FALSE
  5631.  ────────────────────────────────────────────────────────────────────────────
  5632. 
  5633.  Information  Always                         Never
  5634.  
  5635.  Initialize   Found tagged section in         Did not find tagged section in
  5636.               TOOLS.INI                      TOOLS.INI
  5637.  
  5638.  Insert       Always                         Never
  5639.  
  5640.  Insertmode   Insert mode turned on          Insert mode turned off
  5641.  
  5642.  Lastselect   Selection re-created           Arg already selected
  5643.  
  5644.  Lasttext     Value of function eventually   Bad argument
  5645.               executed
  5646.  
  5647.  Ldelete      Always                         Never
  5648.  
  5649.  Left         Cursor moved                   Cursor not moved
  5650.  
  5651.  Function     Returns TRUE                   Returns FALSE
  5652.  ────────────────────────────────────────────────────────────────────────────
  5653. 
  5654.  Linsert      Always                         Never
  5655.  
  5656.  Mark         Definition or move successful  Bad argument, or specified
  5657.                                              file marker not found
  5658.  
  5659.  Message      Always                         Never
  5660.  
  5661.  Meta         Meta turned on                 Meta turned off
  5662.  
  5663.  Mgrep        String found                   String not found or specified,
  5664.                                              or search terminated by
  5665.                                              CTRL+BREAK, or background
  5666.                                              compilation in progress
  5667.  
  5668.  Mlines       Movement occurred              Bad argument
  5669.  
  5670.  Mpage        Movement occurred              Bad argument
  5671.  
  5672.  Function     Returns TRUE                   Returns FALSE
  5673.  ────────────────────────────────────────────────────────────────────────────
  5674. 
  5675.  Mpara        Cursor moved                   Cursor not moved
  5676.  
  5677.  Mreplace     Replacement successful         Replacement failed, or was
  5678.                                              aborted
  5679.  
  5680.  Msearch      String found                   Bad argument, or string not
  5681.                                              found
  5682.  
  5683.  Mword        Cursor moved                   Cursor not moved
  5684.  
  5685.  Newline      Always                         Never
  5686.  
  5687.  Nextmsg      Message found                  No more messages found
  5688.  
  5689.  Noedit       File or editor in no-edit      File or editor is editable
  5690.               state
  5691.  
  5692.  Paste        Usually                        Tried Arg Arg filename Paste
  5693.  Function     Returns TRUE                   Returns FALSE
  5694.  ────────────────────────────────────────────────────────────────────────────
  5695. Paste        Usually                        Tried Arg Arg filename Paste
  5696.                                              and file did not exist
  5697.  
  5698.  Pbal         Balance successful             Bad argument, or string not
  5699.                                              found
  5700.  
  5701.  Plines       Movement occurred              Bad argument, or not balanced
  5702.  
  5703.  Ppage        Cursor moved                   Cursor not moved
  5704.  
  5705.  Ppara        Cursor moved                   Cursor not moved
  5706.  
  5707.  Print        Print successfully submitted   Could not start print job
  5708.  
  5709.  Psearch      String found                   Bad argument, or string not
  5710.                                              found
  5711.  
  5712.  Pword        Cursor moved                   Cursor not moved
  5713.  
  5714.  Function     Returns TRUE                   Returns FALSE
  5715.  ────────────────────────────────────────────────────────────────────────────
  5716. 
  5717.  Qreplace     At least one replacement       String not found, or invalid
  5718.                                              pattern
  5719.  
  5720.  Quote        Almost always                  Insertion would make line too
  5721.                                              long
  5722.  
  5723.  Record       Recording turned on            Recording turned off
  5724.  
  5725.  Refresh      File read in or deleted        Canceled, or bad argument
  5726.  
  5727.  Repeat       Function repeated and          Function repeated and returned
  5728.               returned TRUE                  FALSE, or no function to
  5729.                                              repeat
  5730.  
  5731.  Replace      At least one replacement       String not found, or invalid
  5732.                                              pattern
  5733.  
  5734.  Restcur      Position previously saved      Position not saved with
  5735.  Function     Returns TRUE                   Returns FALSE
  5736.  ────────────────────────────────────────────────────────────────────────────
  5737. Restcur      Position previously saved      Position not saved with
  5738.               with                           Savecur
  5739.               Savecur
  5740.  
  5741.  Right        Cursor on the text of a line   Cursor beyond end of line
  5742.  
  5743.  Saveall      Always                         Never
  5744.  
  5745.  Savecur      Always                         Never
  5746.  
  5747.  Sdelete      Always                         Never
  5748.  
  5749.  Searchall    Something found                Nothing found
  5750.  
  5751.  Setfile      File switch successful         No alternate file, or current
  5752.                                              file needs to be saved and
  5753.                                              can't be saved
  5754.  
  5755.  Setwindow    Always                         Never
  5756.  Function     Returns TRUE                   Returns FALSE
  5757.  ────────────────────────────────────────────────────────────────────────────
  5758. Setwindow    Always                         Never
  5759.  
  5760.  Shell        Shell successful               Bad argument, or program not
  5761.                                              found
  5762.  
  5763.  Sinsert      Always                         Never
  5764.  
  5765.  Tab          Cursor moved                   Cursor not moved, or program
  5766.                                              not found
  5767.  
  5768.  Tell         Key pressed has function       Key pressed has no function
  5769.               assigned                       assigned
  5770.  
  5771.  Undo         Usually                        If nothing to undo
  5772.  
  5773.  Up           Cursor moved                   Cursor not moved
  5774.  
  5775.  Window       Successful split, join, or     Any error
  5776.               move
  5777.  Function     Returns TRUE                   Returns FALSE
  5778.  ────────────────────────────────────────────────────────────────────────────
  5779.              move
  5780.  
  5781.  ────────────────────────────────────────────────────────────────────────────
  5782.  
  5783.  
  5784.  
  5785.  
  5786.  PWB Switches
  5787.  
  5788.  To set a numeric or text switch, invoke the Options menu Editor Settings
  5789.  command. Within the list of PWB settings, switches are followed by a colon
  5790.  and the current setting:
  5791.  
  5792.  switch:value
  5793.  
  5794.  where switch is the name of the switch and value is a string of digits
  5795.  (numeric switch) or a string of text (text switch).
  5796.  
  5797.  After modifying the switch, save the PWB settings file with the File menu
  5798.  Save command.
  5799.  
  5800.  The following table lists switches, along with their type, default value,
  5801.  and description.
  5802.  
  5803. ╓┌───────────────┌────────┌────────────────────────────────────────────┌─────
  5804.                           Default
  5805.  Switch          Type     Value                                        Descrip
  5806.  ─────────────────────────────────────────────────────────────────────────────
  5807.  askexit         Boolean  No                                           Prompts
  5808.                                                                        confirm
  5809.                                                                        exit fr
  5810.  
  5811.  askrtn          Boolean  Yes                                          Prompts
  5812.                                                                        ENTER w
  5813.                                                                        from a
  5814.  
  5815.  autosave        Boolean  Yes                                          Saves t
  5816.                                                                        wheneve
  5817.                                                                        another
  5818.                                                                        is set
  5819.                           Default
  5820.  Switch          Type     Value                                        Descrip
  5821.  ─────────────────────────────────────────────────────────────────────────────
  5822.                                                                       is set
  5823.                                                                        of file
  5824.                                                                        maintai
  5825.                                                                        subsequ
  5826.                                                                        such as
  5827.                                                                        lose ed
  5828.  
  5829.  backup          Text     bak                                          Determi
  5830.                                                                        to the
  5831.                                                                        file wh
  5832.                                                                        is save
  5833.                                                                        value o
  5834.                                                                        that no
  5835.                                                                        operati
  5836.                                                                        perform
  5837.                                                                        overwri
  5838.                                                                        A value
  5839.                                                                        specifi
  5840.                           Default
  5841.  Switch          Type     Value                                        Descrip
  5842.  ─────────────────────────────────────────────────────────────────────────────
  5843.                                                                       specifi
  5844.                                                                        file is
  5845.                                                                        the DEL
  5846.                                                                        so that
  5847.                                                                        retriev
  5848.                                                                        bak spe
  5849.                                                                        file na
  5850.                                                                        version
  5851.                                                                        will be
  5852.  
  5853.  browwindow      Boolean  Yes                                          Defines
  5854.                                                                        display
  5855.                                                                        informa
  5856.                                                                        switch
  5857.                                                                        Source
  5858.                                                                        informa
  5859.                                                                        a split
  5860.                                                                        switch
  5861.                           Default
  5862.  Switch          Type     Value                                        Descrip
  5863.  ─────────────────────────────────────────────────────────────────────────────
  5864.                                                                       switch
  5865.                                                                        Source
  5866.                                                                        informa
  5867.                                                                        the cur
  5868.  
  5869.  build           Text     ─                                            Defines
  5870.                                                                        that PW
  5871.                                                                        invoke
  5872.                                                                        functio
  5873.                                                                        Compile
  5874.                                                                        options
  5875.                                                                        Options
  5876.                                                                        switche
  5877.                                                                        of the
  5878.                                                                        the NMA
  5879.                                                                        uses th
  5880.                                                                        to defi
  5881.                                                                        feature
  5882.                           Default
  5883.  Switch          Type     Value                                        Descrip
  5884.  ─────────────────────────────────────────────────────────────────────────────
  5885.                                                                       feature
  5886.                                                                        list (i
  5887.                                                                        appeara
  5888.                                                                        <assign
  5889.  
  5890.                                                                        - NMAKE
  5891.                                                                        the
  5892.                                                                           prog
  5893.                                                                        - Build
  5894.                                                                        during
  5895.                                                                           sess
  5896.                                                                        - Build
  5897.                                                                        command
  5898.                                                                           comb
  5899.                                                                        command
  5900.                                                                           defi
  5901.                                                                        build s
  5902.                                                                           used
  5903.                           Default
  5904.  Switch          Type     Value                                        Descrip
  5905.  ─────────────────────────────────────────────────────────────────────────────
  5906.                                                                          used
  5907.                                                                        targets
  5908.                                                                        - NMAKE
  5909.                                                                        used in
  5910.                                                                           the
  5911.                                                                        - Comma
  5912.                                                                        build-t
  5913.                                                                           comm
  5914.                                                                        and deb
  5915.                                                                           buil
  5916.                                                                        - Files
  5917.                                                                        in the
  5918.                                                                           prog
  5919.                                                                        - Error
  5920.                                                                        display
  5921.                                                                           if t
  5922.  
  5923.                                                                        General
  5924.                           Default
  5925.  Switch          Type     Value                                        Descrip
  5926.  ─────────────────────────────────────────────────────────────────────────────
  5927.                                                                       General
  5928.                                                                        need to
  5929.                                                                        switch
  5930.                                                                        you can
  5931.                                                                        of your
  5932.                                                                        link op
  5933.                                                                        selecti
  5934.                                                                        the Opt
  5935.                                                                        However
  5936.                                                                        to set
  5937.                                                                        directl
  5938.  
  5939.                                                                        - Compi
  5940.                                                                        that ar
  5941.                                                                           avai
  5942.                                                                        Options
  5943.                                                                        - Use o
  5944.                                                                        listed
  5945.                           Default
  5946.  Switch          Type     Value                                        Descrip
  5947.  ─────────────────────────────────────────────────────────────────────────────
  5948.                                                                       listed
  5949.                                                                           Opti
  5950.                                                                        - Perfo
  5951.                                                                        builds
  5952.                                                                           not
  5953.                                                                        Options
  5954.  
  5955.  case            Boolean  No                                           Conside
  5956.                                                                        signifi
  5957.                                                                        and rep
  5958.                                                                        For exa
  5959.                                                                        set to
  5960.                                                                        Procedu
  5961.  
  5962.                                                                        as a ma
  5963.                                                                        string
  5964.                                                                        procedu
  5965.  
  5966.                           Default
  5967.  Switch          Type     Value                                        Descrip
  5968.  ─────────────────────────────────────────────────────────────────────────────
  5969. 
  5970.  color           Text     ─                                            Specifi
  5971.                                                                        windows
  5972.                                                                        table o
  5973.                                                                        name, d
  5974.                                                                        and des
  5975.                                                                        this ta
  5976.  
  5977.  dblclick        Numeric  ─                                            Sets th
  5978.                                                                        double-
  5979.                                                                        the max
  5980.                                                                        between
  5981.                                                                        clicks
  5982.                                                                        conside
  5983.                                                                        double-
  5984.                                                                        the uni
  5985.                                                                        in unit
  5986.                                                                        second,
  5987.                           Default
  5988.  Switch          Type     Value                                        Descrip
  5989.  ─────────────────────────────────────────────────────────────────────────────
  5990.                                                                       second,
  5991.                                                                        units
  5992.                                                                        are mil
  5993.  
  5994.  deflang         Text     ─                                            Defines
  5995.                                                                        and the
  5996.                                                                        extensi
  5997.                                                                        names.
  5998.                                                                        include
  5999.                                                                        C (*.C)
  6000.                                                                        FORTRAN
  6001.                                                                        (*.LSP)
  6002.                                                                        (*.ASM)
  6003.                                                                        and NON
  6004.  
  6005.  defwinstyle     Numeric  7                                            Defines
  6006.                                                                        style a
  6007.                                                                        or abse
  6008.                           Default
  6009.  Switch          Type     Value                                        Descrip
  6010.  ─────────────────────────────────────────────────────────────────────────────
  6011.                                                                       or abse
  6012.                                                                        border
  6013.                                                                        Possibl
  6014.                                                                        include
  6015.  
  6016.                                                                        0   No
  6017.                                                                        scroll
  6018.                                                                        1   Bor
  6019.                                                                        bars
  6020.                                                                        3   Bor
  6021.                                                                        scroll
  6022.                                                                        5   Bor
  6023.                                                                        scroll
  6024.                                                                        7   Bor
  6025.                                                                        and hor
  6026.                                                                             sc
  6027.  
  6028.  doslibs         Text     Override                                     Tells P
  6029.                           Default
  6030.  Switch          Type     Value                                        Descrip
  6031.  ─────────────────────────────────────────────────────────────────────────────
  6032. doslibs         Text     Override                                     Tells P
  6033.                                                                        DOS/rea
  6034.                                                                        have be
  6035.                                                                        if so,
  6036.                                                                        have de
  6037.                                                                        explici
  6038.                                                                        Possibl
  6039.                                                                        "none"
  6040.                                                                        "defaul
  6041.                                                                        with de
  6042.                                                                        "overri
  6043.                                                                        with ex
  6044.  
  6045.  edit            Boolean  Yes, unless the /r command-line option has   Allows
  6046.                           been specified                               edited.
  6047.                                                                        set to
  6048.                                                                        cannot
  6049.  
  6050.                           Default
  6051.  Switch          Type     Value                                        Descrip
  6052.  ─────────────────────────────────────────────────────────────────────────────
  6053. 
  6054.  editreadonly    Boolean  Yes                                          Allows
  6055.                                                                        marked
  6056.                                                                        be edit
  6057.                                                                        switch
  6058.                                                                        read-on
  6059.                                                                        marked
  6060.  
  6061.  entab           Numeric  1                                            Control
  6062.                                                                        which P
  6063.                                                                        multipl
  6064.                                                                        when ed
  6065.                                                                        value o
  6066.                                                                        are not
  6067.                                                                        represe
  6068.                                                                        1 means
  6069.                                                                        spaces
  6070.                                                                        quoted
  6071.                           Default
  6072.  Switch          Type     Value                                        Descrip
  6073.  ─────────────────────────────────────────────────────────────────────────────
  6074.                                                                       quoted
  6075.                                                                        convert
  6076.                                                                        multipl
  6077.                                                                        convert
  6078.  
  6079.  enterinsmode    Boolean  Last state of                                Starts
  6080.                           insert or overtype mode from previous        mode in
  6081.                           editing session                              overtyp
  6082.                                                                        switche
  6083.                                                                        in the
  6084.                                                                        editing
  6085.  
  6086.  enterselmode    Text     Stream mode                                  Determi
  6087.                                                                        selecti
  6088.                                                                        line, b
  6089.  
  6090.  factor          Numeric  ─                                            With th
  6091.                                                                        switch
  6092.                           Default
  6093.  Switch          Type     Value                                        Descrip
  6094.  ─────────────────────────────────────────────────────────────────────────────
  6095.                                                                       switch
  6096.  
  6097.                                                                        factor:
  6098.  
  6099.                                                                        means "
  6100.                                                                        frictio
  6101.                                                                        10% eve
  6102.                                                                        keystro
  6103.  
  6104.                                                                        factor:
  6105.  
  6106.                                                                        means "
  6107.                                                                        frictio
  6108.                                                                        60 ever
  6109.                                                                        keystro
  6110.  
  6111.  fastfunc        Text     ─                                            Enables
  6112.                                                                        for PWB
  6113.                           Default
  6114.  Switch          Type     Value                                        Descrip
  6115.  ─────────────────────────────────────────────────────────────────────────────
  6116.                                                                       for PWB
  6117.                                                                        default
  6118.                                                                        that au
  6119.                                                                        Down, L
  6120.                                                                        Mlines,
  6121.                                                                        Mword,
  6122.                                                                        Ppara,
  6123.                                                                        speed a
  6124.                                                                        functio
  6125.                                                                        is cont
  6126.                                                                        frictio
  6127.                                                                        switche
  6128.  
  6129.  filetab         Numeric  8                                            Determi
  6130.                                                                        transla
  6131.                                                                        spaces
  6132.                                                                        writing
  6133.                                                                        This sw
  6134.                           Default
  6135.  Switch          Type     Value                                        Descrip
  6136.  ─────────────────────────────────────────────────────────────────────────────
  6137.                                                                       This sw
  6138.                                                                        determi
  6139.                                                                        transla
  6140.                                                                        tabs fo
  6141.                                                                        when en
  6142.                                                                        value o
  6143.                                                                        gives t
  6144.                                                                        spaces
  6145.                                                                        each ta
  6146.                                                                        example
  6147.                                                                        "fileta
  6148.                                                                        tab col
  6149.                                                                        positio
  6150.                                                                        Every t
  6151.                                                                        tab cha
  6152.                                                                        it load
  6153.                                                                        with th
  6154.                                                                        spaces
  6155.                           Default
  6156.  Switch          Type     Value                                        Descrip
  6157.  ─────────────────────────────────────────────────────────────────────────────
  6158.                                                                       spaces
  6159.                                                                        to the
  6160.  
  6161.  friction        Numeric  ─                                            With th
  6162.                                                                        control
  6163.                                                                        repeat
  6164.                                                                        of the
  6165.                                                                        A large
  6166.                                                                        the rep
  6167.                                                                        slower.
  6168.  
  6169.  height          Numeric  25                                           Control
  6170.                                                                        lines i
  6171.                                                                        editing
  6172.                                                                        useful
  6173.                                                                        nonstan
  6174.                                                                        device.
  6175.                                                                        Graphic
  6176.                           Default
  6177.  Switch          Type     Value                                        Descrip
  6178.  ─────────────────────────────────────────────────────────────────────────────
  6179.                                                                       Graphic
  6180.                                                                        in 43-l
  6181.                                                                        IBM PC
  6182.                                                                        43. Vid
  6183.                                                                        (VGA) i
  6184.                                                                        uses a
  6185.  
  6186.  helpfiles       Text     $PATH:                                       Specifi
  6187.                           PWB.HLP                                      files s
  6188.                                                                        searche
  6189.                                                                        help.
  6190.  
  6191.  helplist        Boolean  Yes                                          If the
  6192.                                                                        yes and
  6193.                                                                        request
  6194.                                                                        topic f
  6195.                                                                        are sev
  6196.                                                                        PWB dis
  6197.                           Default
  6198.  Switch          Type     Value                                        Descrip
  6199.  ─────────────────────────────────────────────────────────────────────────────
  6200.                                                                       PWB dis
  6201.                                                                        availab
  6202.                                                                        If the
  6203.                                                                        no or i
  6204.                                                                        one hel
  6205.                                                                        topic,
  6206.                                                                        first i
  6207.                                                                        finds a
  6208.                                                                        topic.
  6209.  
  6210.  helpwindow      Boolean  Yes                                          Control
  6211.                                                                        behavio
  6212.                                                                        switch
  6213.                                                                        PWB doe
  6214.                                                                        screen
  6215.                                                                        on-line
  6216.                                                                        informa
  6217.  
  6218.                           Default
  6219.  Switch          Type     Value                                        Descrip
  6220.  ─────────────────────────────────────────────────────────────────────────────
  6221. 
  6222.  hike            Numeric  4                                            Specifi
  6223.                                                                        new-lin
  6224.                                                                        the top
  6225.                                                                        when th
  6226.                                                                        moved o
  6227.                                                                        current
  6228.                                                                        than vs
  6229.  
  6230.  hscroll         Numeric  10                                           Control
  6231.                                                                        columns
  6232.                                                                        right w
  6233.                                                                        is scro
  6234.                                                                        editing
  6235.  
  6236.  load            Text     ─                                            Specifi
  6237.                                                                        PWB ext
  6238.                                                                        executa
  6239.                           Default
  6240.  Switch          Type     Value                                        Descrip
  6241.  ─────────────────────────────────────────────────────────────────────────────
  6242.                                                                       executa
  6243.                                                                        loaded.
  6244.                                                                        switch
  6245.                                                                        new val
  6246.                                                                        extensi
  6247.                                                                        loaded
  6248.                                                                        initial
  6249.                                                                        its Whe
  6250.                                                                        functio
  6251.  
  6252.  markfile        Text     ─                                            Specifi
  6253.                                                                        the fil
  6254.                                                                        when lo
  6255.                                                                        marker
  6256.                                                                        the in-
  6257.                                                                        file ca
  6258.                                                                        enterin
  6259.                                                                        followi
  6260.                           Default
  6261.  Switch          Type     Value                                        Descrip
  6262.  ─────────────────────────────────────────────────────────────────────────────
  6263.                                                                       followi
  6264.  
  6265.                                                                        markern
  6266.                                                                        line co
  6267.  
  6268.                                                                        Here, l
  6269.                                                                        specify
  6270.                                                                        the fil
  6271.                                                                        the mar
  6272.                                                                        appears
  6273.  
  6274.  menukey         Text     ALT                                          Defines
  6275.                                                                        enables
  6276.                                                                        bar.
  6277.  
  6278.  msgflush        Boolean  Yes                                          Determi
  6279.                                                                        previou
  6280.                                                                        message
  6281.                           Default
  6282.  Switch          Type     Value                                        Descrip
  6283.  ─────────────────────────────────────────────────────────────────────────────
  6284.                                                                       message
  6285.                                                                        backgro
  6286.                                                                        operati
  6287.                                                                        the swi
  6288.                                                                        yes, th
  6289.                                                                        message
  6290.                                                                        When it
  6291.                                                                        the old
  6292.                                                                        retaine
  6293.                                                                        compile
  6294.                                                                        always
  6295.                                                                        backgro
  6296.                                                                        impossi
  6297.  
  6298.  noise           Numeric  50                                           Control
  6299.                                                                        lines c
  6300.                                                                        when se
  6301.                                                                        loading
  6302.                           Default
  6303.  Switch          Type     Value                                        Descrip
  6304.  ─────────────────────────────────────────────────────────────────────────────
  6305.                                                                       loading
  6306.                                                                        value i
  6307.                                                                        the low
  6308.                                                                        of the
  6309.                                                                        status
  6310.                                                                        set to
  6311.                                                                        noise t
  6312.  
  6313.  os2libs         Text     Override                                     Tells P
  6314.                                                                        protect
  6315.                                                                        librari
  6316.                                                                        install
  6317.                                                                        whether
  6318.                                                                        default
  6319.                                                                        names.
  6320.                                                                        include
  6321.                                                                        install
  6322.                                                                        (instal
  6323.                           Default
  6324.  Switch          Type     Value                                        Descrip
  6325.  ─────────────────────────────────────────────────────────────────────────────
  6326.                                                                       (instal
  6327.                                                                        names),
  6328.                                                                        (instal
  6329.                                                                        explici
  6330.  
  6331.  printcmd        Text     ─                                            Specifi
  6332.                                                                        system-
  6333.                                                                        that PW
  6334.                                                                        you iss
  6335.                                                                        command
  6336.  
  6337.  readonly        Text     ─                                            Specifi
  6338.                                                                        command
  6339.                                                                        PWB att
  6340.                                                                        overwri
  6341.                                                                        file. T
  6342.                                                                        name re
  6343.  
  6344.                           Default
  6345.  Switch          Type     Value                                        Descrip
  6346.  ─────────────────────────────────────────────────────────────────────────────
  6347. 
  6348.  realtabs        Boolean  Yes                                          Preserv
  6349.                                                                        charact
  6350.                                                                        convert
  6351.                                                                        spaces.
  6352.                                                                        switch
  6353.                                                                        PWB pre
  6354.                                                                        alignme
  6355.                                                                        are add
  6356.  
  6357.  rmargin         Numeric  72                                           Control
  6358.                                                                        column
  6359.                                                                        wordwra
  6360.                                                                        charact
  6361.                                                                        right o
  6362.                                                                        causes
  6363.                                                                        Wordwra
  6364.                                                                        on and
  6365.                           Default
  6366.  Switch          Type     Value                                        Descrip
  6367.  ─────────────────────────────────────────────────────────────────────────────
  6368.                                                                       on and
  6369.                                                                        wordwra
  6370.  
  6371.  savescreen      Boolean  Yes                                          Saves a
  6372.                                                                        DOS or
  6373.                                                                        (used w
  6374.                                                                        and Exi
  6375.  
  6376.  searchwrap      Boolean  No                                           Causes
  6377.                                                                        replace
  6378.                                                                        wrap pa
  6379.                                                                        the fil
  6380.                                                                        searchi
  6381.                                                                        beginni
  6382.                                                                        searche
  6383.                                                                        entire
  6384.                                                                        once. W
  6385.                                                                        is set
  6386.                           Default
  6387.  Switch          Type     Value                                        Descrip
  6388.  ─────────────────────────────────────────────────────────────────────────────
  6389.                                                                       is set
  6390.                                                                        stop at
  6391.                                                                        or end
  6392.  
  6393.  shortnames      Boolean  Yes                                          Allows
  6394.                                                                        file by
  6395.                                                                        base na
  6396.                                                                        searche
  6397.                                                                        <inform
  6398.  
  6399.  softcr          Boolean  Yes                                          Attempt
  6400.                                                                        based u
  6401.                                                                        of the
  6402.  
  6403.                                                                        when yo
  6404.                                                                        Newline
  6405.                                                                        functio
  6406.  
  6407.                           Default
  6408.  Switch          Type     Value                                        Descrip
  6409.  ─────────────────────────────────────────────────────────────────────────────
  6410. 
  6411.  tabalign        Boolean  No                                           Determi
  6412.                                                                        cursor
  6413.                                                                        a tab f
  6414.                                                                        switch
  6415.                                                                        the cur
  6416.                                                                        placed
  6417.                                                                        tab fie
  6418.                                                                        switch
  6419.                                                                        (and if
  6420.                                                                        also se
  6421.                                                                        cursor
  6422.                                                                        column
  6423.                                                                        tab.
  6424.  
  6425.  tabdisp         Numeric  32                                           Specifi
  6426.                                                                        value o
  6427.                                                                        charact
  6428.                           Default
  6429.  Switch          Type     Value                                        Descrip
  6430.  ─────────────────────────────────────────────────────────────────────────────
  6431.                                                                       charact
  6432.                                                                        space i
  6433.                                                                        graphic
  6434.                                                                        be used
  6435.                                                                        spaces
  6436.                                                                        tabs.
  6437.  
  6438.  tabstops        Numeric  4                                            Control
  6439.                                                                        spaces
  6440.                                                                        logical
  6441.                                                                        the Tab
  6442.                                                                        movemen
  6443.                                                                        This sw
  6444.                                                                        relatio
  6445.                                                                        interpr
  6446.                                                                        actual
  6447.  
  6448.  tmpsav          Numeric  20                                           Control
  6449.                           Default
  6450.  Switch          Type     Value                                        Descrip
  6451.  ─────────────────────────────────────────────────────────────────────────────
  6452. tmpsav          Numeric  20                                           Control
  6453.                                                                        number
  6454.                                                                        which i
  6455.                                                                        kept be
  6456.                                                                        session
  6457.                                                                        listed
  6458.                                                                        exit PW
  6459.                                                                        of the
  6460.                                                                        window
  6461.                                                                        you edi
  6462.                                                                        second
  6463.                                                                        is rest
  6464.                                                                        previou
  6465.                                                                        this sw
  6466.                                                                        PWB let
  6467.                                                                        informa
  6468.                                                                        without
  6469.                                                                        files e
  6470.                           Default
  6471.  Switch          Type     Value                                        Descrip
  6472.  ─────────────────────────────────────────────────────────────────────────────
  6473.                                                                       files e
  6474.                                                                        appear
  6475.                                                                        in the
  6476.                                                                        until
  6477.                                                                        CURRENT
  6478.                                                                        or
  6479.                                                                        deleted
  6480.  
  6481.  traildisp       Numeric  0                                            Specifi
  6482.                                                                        value o
  6483.                                                                        to be d
  6484.                                                                        trailin
  6485.                                                                        switch
  6486.                                                                        unless
  6487.                                                                        switch
  6488.                                                                        to yes.
  6489.  
  6490.  traillines      Boolean  No                                           If this
  6491.                           Default
  6492.  Switch          Type     Value                                        Descrip
  6493.  ─────────────────────────────────────────────────────────────────────────────
  6494. traillines      Boolean  No                                           If this
  6495.                                                                        to yes,
  6496.                                                                        the end
  6497.                                                                        retaine
  6498.                                                                        is save
  6499.                                                                        is set
  6500.                                                                        not sav
  6501.                                                                        lines f
  6502.                                                                        last no
  6503.  
  6504.  traillinesdisp  Numeric  Space ASCII 32                               Specifi
  6505.                                                                        display
  6506.                                                                        column
  6507.                                                                        beyond
  6508.                                                                        file.
  6509.  
  6510.  trailspace      Boolean  No                                           Preserv
  6511.                                                                        spaces
  6512.                           Default
  6513.  Switch          Type     Value                                        Descrip
  6514.  ─────────────────────────────────────────────────────────────────────────────
  6515.                                                                       spaces
  6516.                                                                        modify.
  6517.  
  6518.  undelcount      Numeric  No limit                                     Control
  6519.                                                                        backup
  6520.                                                                        saved w
  6521.                                                                        switch
  6522.                                                                        When th
  6523.                                                                        exceede
  6524.                                                                        the old
  6525.  
  6526.  undocount       Numeric  10                                           Control
  6527.                                                                        times y
  6528.                                                                        redo an
  6529.  
  6530.  unixre          Boolean  Yes                                          Specifi
  6531.                                                                        regular
  6532.                                                                        express
  6533.                           Default
  6534.  Switch          Type     Value                                        Descrip
  6535.  ─────────────────────────────────────────────────────────────────────────────
  6536.                                                                       express
  6537.                                                                        rather
  6538.                                                                        the syn
  6539.  
  6540.  user            Text     ─                                            Customi
  6541.                                                                        menu by
  6542.                                                                        program
  6543.                                                                        called
  6544.                                                                        The use
  6545.                                                                        these p
  6546.  
  6547.                                                                        user: t
  6548.                                                                        output,
  6549.                                                                        runtime
  6550.                                                                        backgrd
  6551.  
  6552.                                                                        The fir
  6553.                                                                        paramet
  6554.                           Default
  6555.  Switch          Type     Value                                        Descrip
  6556.  ─────────────────────────────────────────────────────────────────────────────
  6557.                                                                       paramet
  6558.                                                                        mandato
  6559.                                                                        name of
  6560.                                                                        it appe
  6561.                                                                        and pat
  6562.                                                                        complet
  6563.                                                                        specifi
  6564.  
  6565.                                                                        The rem
  6566.                                                                        paramet
  6567.                                                                        optiona
  6568.  
  6569.                           ─                                            arg: co
  6570.                           ─                                            argumen
  6571.                           Current directory                            output:
  6572.                           None                                         dir: wo
  6573.                           ─
  6574.                                                                        helplin
  6575.                           Default
  6576.  Switch          Type     Value                                        Descrip
  6577.  ─────────────────────────────────────────────────────────────────────────────
  6578.                                                                       helplin
  6579.                           No                                           left si
  6580.                                                                        status
  6581.                           No                                           runtime
  6582.                                                                        whether
  6583.                           ─                                            run-tim
  6584.                                                                        passing
  6585.                                                                        the pro
  6586.                                                                        return:
  6587.                                                                        whether
  6588.                                                                        is to p
  6589.                                                                        keystro
  6590.                                                                        complet
  6591.                                                                        backgrd
  6592.                                                                        whether
  6593.                                                                        runs in
  6594.                                                                        key: As
  6595.                                                                        key to
  6596.                           Default
  6597.  Switch          Type     Value                                        Descrip
  6598.  ─────────────────────────────────────────────────────────────────────────────
  6599.                                                                       key to
  6600.                                                                        (1-9)
  6601.  
  6602.  viewonly        Boolean  No                                           When se
  6603.                                                                        file in
  6604.                                                                        viewed,
  6605.  
  6606.  vscroll         Numeric  7                                            Control
  6607.                                                                        lines s
  6608.                                                                        down wh
  6609.                                                                        scrolle
  6610.                                                                        editing
  6611.                                                                        Mlines
  6612.                                                                        functio
  6613.                                                                        value.
  6614.  
  6615.  width           Numeric  80                                           Control
  6616.                                                                        the dis
  6617.                           Default
  6618.  Switch          Type     Value                                        Descrip
  6619.  ─────────────────────────────────────────────────────────────────────────────
  6620.                                                                       the dis
  6621.                                                                        display
  6622.                                                                        capable
  6623.                                                                        than 80
  6624.                                                                        other t
  6625.                                                                        support
  6626.                                                                        limited
  6627.                                                                        monitor
  6628.  
  6629.  winlibs         Text     Override                                     Tells P
  6630.                                                                        Windows
  6631.                                                                        been in
  6632.                                                                        so, whe
  6633.                                                                        default
  6634.                                                                        names.
  6635.                                                                        include
  6636.                                                                        install
  6637.                                                                        (instal
  6638.                           Default
  6639.  Switch          Type     Value                                        Descrip
  6640.  ─────────────────────────────────────────────────────────────────────────────
  6641.                                                                       (instal
  6642.                                                                        names),
  6643.                                                                        (instal
  6644.                                                                        explici
  6645.  
  6646.  wordwrap        Boolean  No                                           Breaks
  6647.                                                                        when yo
  6648.                                                                        beyond
  6649.                                                                        specifi
  6650.  
  6651.  ─────────────────────────────────────────────────────────────────────────────
  6652.  
  6653.  
  6654.  
  6655.  
  6656.  Color Switch Values
  6657.  
  6658.  The following table lists the color names used with the color switch, along
  6659.  with the default value and description of each. The syntax
  6660.  
  6661.  color:option
  6662.  
  6663.  is used.
  6664.  
  6665. ╓┌───────────────┌────────────────────────────────────────────┌──────────────╖
  6666.  Color Names     Description                                  Default Value
  6667.  ────────────────────────────────────────────────────────────────────────────
  6668.  alert           MessageBox alerts                            70
  6669.  
  6670.  border          Window borders                               07
  6671.  
  6672.  buttondown      Pushed button color                          07
  6673.  
  6674.  dialogaccel     Dialog box accelerators                      7f
  6675.  
  6676.  dialogaccelbor  Dialog box accelerator border                7f
  6677.  
  6678.  dialogbox       Dialog box background                        70
  6679.  
  6680.  Color Names     Description                                  Default Value
  6681.  ────────────────────────────────────────────────────────────────────────────
  6682. 
  6683.  disabled        Disabled items                               78
  6684.  
  6685.  elevator        Scroll bar elevator                          07
  6686.  
  6687.  enabled         Enabled items                                70
  6688.  
  6689.  helpbold        Help boldface text                           1f
  6690.  
  6691.  helpitalic      Help italic text                             1a
  6692.  
  6693.  helpnorm        Help normal text                             17
  6694.  
  6695.  helpunderline   Help underline text                          1c
  6696.  
  6697.  helpwarning     Help warning text                            70
  6698.  
  6699.  hilitectrl      Highlighted control items                    07
  6700.  
  6701.  Color Names     Description                                  Default Value
  6702.  ────────────────────────────────────────────────────────────────────────────
  6703. 
  6704.  info            Status line without buttons                  3f
  6705.  
  6706.  itemhilitesel   One highlighted character (under selection   0f
  6707.                  bar)
  6708.  
  6709.  listbox         Listbox background                           70
  6710.  
  6711.  menu            Menu bar color                               70
  6712.  
  6713.  menubox         Background for menus                         70
  6714.  
  6715.  menuhilite      One highlighted character                    7f
  6716.  
  6717.  menuhilitesel   One highlighted character (under selection   0f
  6718.                  bar)
  6719.  
  6720.  menuselected    Selected menus                               07
  6721.  
  6722.  Color Names     Description                                  Default Value
  6723.  ────────────────────────────────────────────────────────────────────────────
  6724. 
  6725.  pushbutton      Pushbutton color                             70
  6726.  
  6727.  scrollbar       Scroll bar background and arrows             70
  6728.  
  6729.  selection       Area highlighted by "Arg cursor-movement"    71
  6730.  
  6731.  shadow          Shadows                                      08
  6732.  
  6733.  status          Status information                           70
  6734.  
  6735.  text            Normal text color                            17
  6736.  
  6737.  ────────────────────────────────────────────────────────────────────────────
  6738.  
  6739.  
  6740.  
  6741.  
  6742.  Regular Expressions
  6743.  
  6744.  A "regular expression" is a special search string that matches a pattern of
  6745.  text rather than a specific sequence of characters. PWB supports two
  6746.  versions of regular-expression syntax: UNIX(R) and Microsoft Editor version
  6747.  1.0. The unixre switch controls which version is in effect.
  6748.  
  6749.  
  6750.  UNIX Special Characters
  6751.  
  6752.  The following list describes the UNIX special characters. All characters
  6753.  should be interpreted literally, except class, which has a special meaning
  6754.  (defined below).
  6755.  
  6756.  
  6757.  Simple
  6758.  
  6759.  \                                 Escape. Causes PWB to ignore the special
  6760.                                    meaning of the next character.
  6761.  
  6762.  .                                 Wild card. Matches any single character.
  6763.  
  6764.  ^                                 Beginning of line. Matches the following
  6765.                                    pattern only when it occurs at the
  6766.                                    beginning of a line.
  6767.  
  6768.  $                                 End of line. Matches the preceding
  6769.                                    pattern only when it occurs at the end
  6770.                                    of a line.
  6771.  
  6772.  [class]                           Character class. Matches any one
  6773.                                    character in the class. A dash (-)
  6774.                                    specifies a contiguous range of ASCII
  6775.                                    values. For example, [a-zA-Z0-9]
  6776.                                    matches any letter or digit, and  [abc]
  6777.                                    matches  a,  b, or  c.
  6778.  
  6779.  [^class]                          Inverse of character class. Matches any
  6780.                                    character not specified in the class.
  6781.  
  6782.  
  6783.  Complex
  6784.  
  6785.  X*                                Repeat operator. Matches zero or more
  6786.                                    occurrences of X, where X represents a
  6787.                                    regular expression that is either a
  6788.                                    single character, a group of characters
  6789.                                    enclosed in brackets ([ ]), or the
  6790.                                    regular-expression delimiters '\ (' and
  6791.                                    '\ )'. This operator always matches as
  6792.                                    many characters as possible.
  6793.  
  6794.  \ ( ... \ )                       Tagged expression. A marked substring
  6795.                                    that you can refer to elsewhere in the
  6796.                                    search string or in a replacement string.
  6797.                                    When a tagged expression is referred to
  6798.                                    in a search string, PWB finds text with
  6799.                                    the tagged expression repeated. When
  6800.                                    a tagged expression is referred to in a
  6801.                                    replacement string, PWB reuses part of
  6802.                                    the text it is replacing. Characters
  6803.                                    falling between '\ (' and '\ )' are
  6804.                                    treated as a group.
  6805.  
  6806.  \n                                Reference to the characters matched by a
  6807.                                    tagged expression. The one-digit number
  6808.                                    n indicates which expression.
  6809.  
  6810.  
  6811.  Non-UNIX Special Characters
  6812.  
  6813.  The following list describes the special characters originally used in the
  6814.  Microsoft Editor version 1.0. The term class has a special meaning (defined
  6815.  below). All other characters should be interpreted literally.
  6816.  
  6817.  
  6818.  Simple
  6819.  
  6820.  \                                 Escape. Causes PWB to ignore the special
  6821.                                    meaning of the next character.
  6822.  
  6823.  ?                                 Wild card. Matches any single character.
  6824.  
  6825.  ^                                 Beginning of line. Matches the following
  6826.                                    pattern only when
  6827.                                    it occurs at the beginning of a line.
  6828.  
  6829.  $                                 End of line. Matches the preceding
  6830.                                    pattern only when it occurs at the end
  6831.                                    of a line.
  6832.  
  6833.  [class]                           Character class. Matches any one
  6834.                                    character in the class.
  6835.                                    A dash (-) specifies a range of values.
  6836.                                    For example,
  6837.                                    [a-zA-Z0-9]  matches any character or
  6838.                                    digit, and
  6839.                                    [abc]  matches  a,  b, or  c.
  6840.  
  6841.  [~class]                          Inverse of character class. Matches any
  6842.                                    character not specified in the class.
  6843.  
  6844.  
  6845.  Complex
  6846.  
  6847.  X*                                Minimal matching. Matches zero or more
  6848.                                    occurrences of X, where X represents a
  6849.                                    regular expression that is either a
  6850.                                    single character or a group of
  6851.                                    characters enclosed in parentheses
  6852.                                    (( )), brackets ([ ]), or braces ({ }).
  6853.  
  6854.  X+                                Minimal matching plus (shorthand for XX*
  6855.                                    ). Matches one or more occurrences of X.
  6856.  
  6857.  X@                           Maximal matching. Identical to X*,
  6858.                                    except that it matches as many
  6859.                                    characters as it can.
  6860.  
  6861.  X#                                Maximal matching plus. Identical to X+,
  6862.                                    except that it matches as many
  6863.                                    characters as it can.
  6864.  
  6865.  (X1!X2!...!Xn)                    Alternation. Matches either X1, X2, or
  6866.                                    Xn. It tries to match the expressions in
  6867.                                    order, and switches from Xi to Xi+1 only
  6868.                                    if the rest of the expression fails to
  6869.                                    match.
  6870.  
  6871.  ~X                                The not function. Matches nothing, but
  6872.                                    checks to see whether the string matches
  6873.                                    X at this point and fails if it does.
  6874.  
  6875.  X^n                               Power function. Matches exactly n copies
  6876.                                    of X.
  6877.  
  6878.  {...}                             Tagged expression, which is a string of
  6879.                                    characters you identify so that you can
  6880.                                    refer to them elsewhere as $n. By
  6881.                                    referring to a tagged expression in a
  6882.                                    search string, you cause PWB to look for
  6883.                                    patterns involving duplication. By
  6884.                                    referring to a tagged expression in a
  6885.                                    replacement string, you cause PWB to
  6886.                                    reuse part of the text that it is
  6887.                                    replacing. Characters within braces are
  6888.                                    treated as a group.
  6889.  
  6890.  $n                                Reference to a previously tagged
  6891.                                    substring. The number n indicates which
  6892.                                    substring. The first tagged substring is
  6893.                                    represented as $1, the second as $2, and
  6894.                                    so on. The tag $0 represents the entire
  6895.                                    matched string.
  6896.  
  6897.  :letter                           Predefined string. See the predefined
  6898.                                    regular expressions listed below.
  6899.  
  6900.  
  6901.  Predefined Regular Expressions
  6902.  
  6903. ╓┌───────┌───────────────────────────────────────────┌───────────────────────╖
  6904.  Letter  Meaning                                     Description
  6905.  ────────────────────────────────────────────────────────────────────────────
  6906.  :a      [a-zA-Z0-9]                                 Alphanumeric
  6907.  
  6908.  :b      ([ \ t]#)                                   White space
  6909.  
  6910.  :c      [a-zA-Z]                                    Alphabetic
  6911.  Letter  Meaning                                     Description
  6912.  ────────────────────────────────────────────────────────────────────────────
  6913. :c      [a-zA-Z]                                    Alphabetic
  6914.  
  6915.  :d      [0-9]                                       Digit
  6916.  
  6917.  :f      ( [ ~ / \\ \\ " \ [ \ ] \ : <|>+=;           Portion of a file name
  6918.          ,.]#!..!.)
  6919.  
  6920.  :h      ([0-9a-fA-F]#)                              Hexadecimal number
  6921.  
  6922.  :i      ([a-zA-Z_$] [a-zA-Z0-9_$]@)                 C-language identifier
  6923.  
  6924.  :n      ([0-9]#.[0-9]@! [0-9]@.[0-9]#![0-9]#)       Number
  6925.  
  6926.  :p      (([a-z] \ :!)( \ \ !)(:f(.:f !)\ \) @:f     Path
  6927.          (.:f !))
  6928.  
  6929.  :q      ("[~"]@"! ''[~ ']@ ')                  Quoted string
  6930.  
  6931.  :w      ([a-zA-Z]#)                                 Word
  6932.  Letter  Meaning                                     Description
  6933.  ────────────────────────────────────────────────────────────────────────────
  6934. :w      ([a-zA-Z]#)                                 Word
  6935.  
  6936.  :z      ([0-9]#)                                    Integer
  6937.  
  6938.  ────────────────────────────────────────────────────────────────────────────
  6939.  
  6940.  
  6941.  
  6942.  
  6943.  QuickHelp
  6944.  ────────────────────────────────────────────────────────────────────────────
  6945.  
  6946.  
  6947.  Summary
  6948.  
  6949.  QuickHelp is a stand-alone utility that displays help files. Specify the
  6950.  options in the QH environment variable or on the command line. When
  6951.  QuickHelp starts, it first processes all options in the QH environment. It
  6952.  then processes any additional options on the command line.
  6953.  
  6954.  
  6955.  Syntax
  6956.  
  6957.    QH «options» topic
  6958.  
  6959.  
  6960.  Options
  6961.  
  6962.  /d filename                       Specifies either a specific database
  6963.                                    name or a path where the databases are
  6964.                                    found. If filename is specified, then
  6965.                                    that data-base is loaded. If a path is
  6966.                                    specified, all files with the extension
  6967.                                    .HLP are loaded.
  6968.  
  6969.                                    Instead of a path, you can specify an
  6970.                                    environment variable by preceding it
  6971.                                    with a dollar sign and following it with
  6972.                                    a colon; for example, /d $INCLUDE:*.HLP.
  6973.  
  6974.  /lnumber                          Specifies the number of lines the
  6975.                                    QuickHelp window should occupy. If you
  6976.                                    specify more lines than the current
  6977.                                    screen mode allows, QuickHelp uses the
  6978.                                    maximum number allowed by the current
  6979.                                    screen mode.
  6980.  
  6981.  /mnumber                          Changes the screen mode to display the
  6982.                                    specified number of lines, where number
  6983.                                    is in the range 25-50.
  6984.  
  6985.  /p filename                       Sets the name of the paste file. This
  6986.                                    option must be followed by a fully
  6987.                                    qualified file name. This option acts in
  6988.                                    the same way as the Rename Paste File
  6989.                                    command on the File menu. The default
  6990.                                    paste file is PASTE.QH, and the file is
  6991.                                    placed in the TMP directory.
  6992.  
  6993.  /pa «filename»                    Specifies that pasting operations are to
  6994.                                    be appended to the current paste file
  6995.                                    (rather than overwriting the file). You
  6996.                                    can follow this option with the name of
  6997.                                    a file if you do not want paste
  6998.                                    operations to go to the default file
  6999.                                    PASTE.QH in the TMP directory.
  7000.  
  7001.  /q                                Prevents the version box from being
  7002.                                    displayed when QuickHelp is installed as
  7003.                                    a keyboard monitor.
  7004.  
  7005.  /r command                        Specifies the command that QuickHelp
  7006.                                    should execute when the Right mouse
  7007.                                    button is pressed. The default action is
  7008.                                    to simulate double-clicking the Left
  7009.                                    mouse button. In other words,
  7010.                                    single-clicking the Right mouse button
  7011.                                    is identical to double-clicking the Left
  7012.                                    mouse button. The following commands are
  7013.                                    available to change this behavior:
  7014.  
  7015.                                    Command     Meaning
  7016.  ────────────────────────────────────────────────────────────────────────────
  7017.                                    l           Pressing the Right mouse
  7018.                                                button will display the last
  7019.                                                topic viewed. This is
  7020.                                                identical to the View Last
  7021.                                                command on
  7022.                                                the View menu.
  7023.  
  7024.                                    i           Pressing the Right mouse
  7025.                                                button will display a
  7026.                                                history of the last topics
  7027.                                                viewed. This is identical to
  7028.                                                the View History command on
  7029.                                                the View menu.
  7030.  
  7031.                                    w           Pressing the Right mouse
  7032.                                                button will temporarily hide
  7033.                                                the QuickHelp window,
  7034.                                                allowing you to select a
  7035.                                                topic from the screen that
  7036.                                                was displayed prior to
  7037.                                                activating QuickHelp. This
  7038.                                                is identical to the Hide
  7039.                                                Window command on the View
  7040.                                                menu.
  7041.  
  7042.                                    b           Pressing the Right mouse
  7043.                                                button will display the
  7044.                                                historically previous topic.
  7045.                                                This is identical to
  7046.                                                pressing ALT+F1.
  7047.  
  7048.                                    e           Pressing the Right mouse
  7049.                                                button will continue the
  7050.                                                search for a
  7051.                                                topic─displaying the next
  7052.                                                topic found, if there are
  7053.                                                any additional topics with
  7054.                                                the same name. This is
  7055.                                                identical to the Continue
  7056.                                                Search command on the View
  7057.                                                menu.
  7058.  
  7059.                                    t           Pressing the Right mouse
  7060.                                                button will display the
  7061.                                                table of contents for the
  7062.                                                current topic. This is
  7063.                                                identical to the Contents
  7064.                                                command on the View menu.
  7065.  
  7066.  /s                                Specifies that clicking the mouse above
  7067.                                    or below the scroll box causes QuickHelp
  7068.                                    to scroll by lines rather than by pages.
  7069.  
  7070.  /sgnumber                         Specifies the number of screen groups
  7071.                                    that QuickHelp should monitor, where
  7072.                                    number is in the range 1-12. This option
  7073.                                    is valid only when QuickHelp is detached
  7074.                                    from an OS/2 protected-mode screen group.
  7075.                                    The default is to monitor the first six
  7076.                                    screen groups created.
  7077.  
  7078.  /t name                           Directs QuickHelp to copy the specified
  7079.                                    section of the given topic to the
  7080.                                    current paste file. This option must be
  7081.                                    followed by a section name. If the
  7082.                                    paste-file mode is Append (/pa),
  7083.                                    QuickHelp displays the specified topic
  7084.                                    in the window. If the paste-file mode is
  7085.                                    Overwrite (/p), QuickHelp exits
  7086.                                    immediately after copying the section to
  7087.                                    the paste file. The following lists the
  7088.                                    possible topic sections:
  7089.  
  7090.                                    Topic       Description
  7091.  ────────────────────────────────────────────────────────────────────────────
  7092.                                    All         Specifies the entire topic
  7093.  
  7094.                                    Syntax      Specifies the syntax section
  7095.                                                of the topic
  7096.  
  7097.                                    Example     Specifies the example of the
  7098.                                                topic
  7099.  
  7100.                                    When this option is specified, QuickHelp
  7101.                                    does not display its window. Instead, it
  7102.                                    searches for the topic specified on the
  7103.                                    command line, pastes the topic to the
  7104.                                    paste file, and exits. This command is
  7105.                                    normally used only with DOS editors that
  7106.                                    spawn a shell to QuickHelp to get the
  7107.                                    paste file. This option is ignored if
  7108.                                    QuickHelp is installed as a keyboard
  7109.                                    monitor.
  7110.  
  7111.  /u                                Specifies that QuickHelp is being run by
  7112.                                    a utility. If the topic specified on the
  7113.                                    command line is not found, QuickHelp
  7114.                                    immediately exits with an exit mode of 3.
  7115.  
  7116.  
  7117.  RM
  7118.  ────────────────────────────────────────────────────────────────────────────
  7119.  
  7120.  
  7121.  Summary
  7122.  
  7123.  RM moves a file to the DELETED directory. You can use the UNDEL command to
  7124.  recover the file.
  7125.  
  7126.  
  7127.  Syntax
  7128.  
  7129.    RM «options» files
  7130.  
  7131.  
  7132.  Options
  7133.  
  7134.  Options can be grouped.
  7135.  
  7136.  /f                                Deletes read-only files without
  7137.                                    prompting.
  7138.  
  7139.  /help                             Displays the help file you are reading.
  7140.  
  7141.  /i                                Inquires for user permission before
  7142.                                    removing.
  7143.  
  7144.  /k                                Keeps read-only files without prompting.
  7145.  
  7146.  /r                                Recurses into subdirectories. A
  7147.                                    subdirectory to recurse into must be
  7148.                                    specified. If one is not specified, RM
  7149.                                    interprets the file name as the name of
  7150.                                    the subdirectory.
  7151.  
  7152.  
  7153.  UNDEL
  7154.  ────────────────────────────────────────────────────────────────────────────
  7155.  
  7156.  
  7157.  Summary
  7158.  
  7159.  UNDEL undeletes a deleted file by moving it from the DELETED subdirectory to
  7160.  the parent directory.
  7161.  
  7162.  
  7163.  Syntax
  7164.  
  7165.    UNDEL «/HELP» «filename»
  7166.  
  7167.  The /HELP option causes UNDEL to attempt to call the QuickHelp program.
  7168.  
  7169.  If filename is not given, the contents of the DELETED subdirectory are
  7170.  listed. If there is more than one version of the file, you are given a list
  7171.  to choose from. If another copy of the deleted file exists in the parent
  7172.  directory, the current version is moved to the DELETED directory and the
  7173.  previously deleted version is moved to the parent directory.
  7174.  
  7175.  
  7176.  
  7177.  
  7178.  
  7179.  
  7180.  PART II  Language Reference
  7181.  ────────────────────────────────────────────────────────────────────────────
  7182.  
  7183.  
  7184.  
  7185.  
  7186.  
  7187.  Language Reference
  7188.  ────────────────────────────────────────────────────────────────────────────
  7189.  
  7190.  
  7191.  Keywords
  7192.  
  7193.  Keywords preceded by an underscore (_) are specific to Microsoft C.
  7194.  
  7195.  _asm            _emit             int             short
  7196.    auto            enum          _interrupt        signed
  7197.  _based          _export         _loadds           sizeof
  7198.    break           extern          long            static
  7199.    case          _far            _near             struct
  7200.  _cdecl          _fastcall       _pascal           switch
  7201.    char            float           register        typedef
  7202.    const           for             return          union
  7203.    continue      _fortran        _saveregs         unsigned
  7204.    default         goto          _segment          void
  7205.    do            _huge           _segname          volatile
  7206.    double          if            _self             while
  7207.    else
  7208.  
  7209.  Statements
  7210.  
  7211.  A C statement consists of program-control keywords, expressions, and
  7212.  function calls. All single statements end with a semicolon. In the following
  7213.  list, statement can be either a single statement ending with a semicolon or
  7214.  a block of statements enclosed in braces.
  7215.  
  7216.  Statement                         Action
  7217.  ────────────────────────────────────────────────────────────────────────────
  7218.  break;                            Terminates the smallest enclosing do,
  7219.                                    for, switch, or while statement in which
  7220.                                    it appears.
  7221.  
  7222.  continue;                         Passes control to the next iteration of
  7223.                                    the smallest enclosing do, for, or while
  7224.                                    statement in which it appears.
  7225.  
  7226.  do                                Executes statement repeatedly until
  7227.     statement                      expression becomes false (0). The
  7228.  while( expression );              statement always executes at least once
  7229.                                    because the exit condition is tested at
  7230.                                    the end of the loop.
  7231.  
  7232.  for( «initexpr»;                  Executes statement repeatedly. First the
  7233.  «condition»;                      initializing expression initexpr is
  7234.  «loopexpr» )                      evaluated (separate multiple
  7235.     statement                      initializing expressions with commas).
  7236.                                    Then while condition evaluates to a
  7237.                                    nonzero value, statement is executed and
  7238.                                    loopexpr is evaluated. When condition
  7239.                                    becomes 0, control passes to the
  7240.                                    statement following the for loop.
  7241.  
  7242.  goto name;                        Transfers control directly to the
  7243.   .                                statement specified by the label name.
  7244.   .                                The label name must be in the same
  7245.   .                                function as the goto statement.
  7246.  name: statement
  7247.  
  7248.  if( expression )                  Executes statement1 if expression is
  7249.     statement1                     true (nonzero). If
  7250.  «else                             expression is false and an else is
  7251.     statement2»                    present, control passes to statement2.
  7252.  
  7253.  ;                                 Empty statement; has no effect.
  7254.  
  7255.  return «expression»;              Terminates execution of the function in
  7256.                                    which it appears and returns control and
  7257.                                    the value of expression to the calling
  7258.                                    function.
  7259.  
  7260.  switch( expression )              Evaluates expression and executes any
  7261.  {                                 statement associated with the constant
  7262.  «case constexpr:»                 expression constexpr whose value matches
  7263.     .                              the initial expression. All statements
  7264.     .                              following case are executed until a
  7265.     .                              break is encountered or the switch block
  7266.        «statement»                 ends. If there is no match with a
  7267.        .                           constant expression, the statement
  7268.        .                           associated with the default keyword is
  7269.        .                           executed. If the default keyword is not
  7270.     «default :                     used, control passes to the statement
  7271.        statement»                  following the switch block.
  7272.  }
  7273.  
  7274.  while( expression )               Executes statement repeatedly until
  7275.     statement                      expression becomes 0. The exit condition
  7276.                                    is tested on entry. If expression is
  7277.                                    initially false, statement never
  7278.                                    executes.
  7279.  
  7280.  
  7281.  Escape Sequences
  7282.  
  7283.  \a                                Alert (bell)
  7284.  
  7285.  \b                                Backspace
  7286.  
  7287.  \f                                Form feed
  7288.  
  7289.  \n                                Newline
  7290.  
  7291.  \r                                Carriage return
  7292.  
  7293.  \t                                Horizontal tab
  7294.  
  7295.  \v                                Vertical tab
  7296.  
  7297.  \'                                Single quotation mark
  7298.  
  7299.  \"                                Double quotation mark
  7300.  
  7301.  \\                                Backslash
  7302.  
  7303.  \0ddd                             ASCII character in octal notation
  7304.  
  7305.  \xdd                              ASCII character in hexadecimal notation
  7306.  
  7307.  
  7308.  Operators
  7309.  
  7310.  C operators have two properties: precedence and associativity. Within a
  7311.  given level, all operators have the same precedence. The levels are listed
  7312.  from highest to lowest precedence.
  7313.  
  7314. ╓┌──────────────────────────────────────────┌────────────────────────────────
  7315.  Operator                                   Name or Meaning                  A
  7316.  ─────────────────────────────────────────────────────────────────────────────
  7317.  ( )                                        Function call                    L
  7318.  [ ]                                        Array element
  7319.  .                                          Member selection
  7320.  ->                                         (structure or union)
  7321.                                             Member selection
  7322.                                             (pointer to structure)
  7323.  
  7324.  ─────────────────────────────────────────────────────────────────────────────
  7325.  
  7326.  ++                                         Increment                        R
  7327.  - -                                        Decrement
  7328.  
  7329.  ─────────────────────────────────────────────────────────────────────────────
  7330.  
  7331.  Operator                                   Name or Meaning                  A
  7332.  ─────────────────────────────────────────────────────────────────────────────
  7333. 
  7334.  :>                                         Base operator                    L
  7335.  
  7336.  ─────────────────────────────────────────────────────────────────────────────
  7337.  
  7338.  !                                          Logical NOT                      R
  7339.  ~                                          Bitwise complement
  7340.  -                                          Arithmetic negation
  7341.  +                                          Unary plus
  7342.  &                                          Address
  7343.  *                                          Indirection
  7344.  sizeof                                     Size in bytes
  7345.  (type)                                     Type cast
  7346.  
  7347.  ─────────────────────────────────────────────────────────────────────────────
  7348.  
  7349.  *                                          Multiplication                   L
  7350.  /                                          Division
  7351.  %                                          Remainder
  7352.  Operator                                   Name or Meaning                  A
  7353.  ─────────────────────────────────────────────────────────────────────────────
  7354. %                                          Remainder
  7355.  
  7356.  ─────────────────────────────────────────────────────────────────────────────
  7357.  
  7358.  +                                          Addition                         L
  7359.  -                                          Subtraction
  7360.  
  7361.  ─────────────────────────────────────────────────────────────────────────────
  7362.  
  7363.  <<                                         Left shift                       L
  7364.  >>                                         Right shift
  7365.  
  7366.  ─────────────────────────────────────────────────────────────────────────────
  7367.  
  7368.  <                                          Less than                        L
  7369.  <=                                         Less than or equal to
  7370.  >                                          Greater than
  7371.  >=                                         Greater than or equal to
  7372.  
  7373.  Operator                                   Name or Meaning                  A
  7374.  ─────────────────────────────────────────────────────────────────────────────
  7375. 
  7376.  ─────────────────────────────────────────────────────────────────────────────
  7377.  
  7378.  ==                                         Equality                         L
  7379.  !=                                         Inequality
  7380.  
  7381.  ─────────────────────────────────────────────────────────────────────────────
  7382.  
  7383.  &                                          Bitwise AND                      L
  7384.  
  7385.  ─────────────────────────────────────────────────────────────────────────────
  7386.  
  7387.  ^                                          Bitwise exclusive OR             L
  7388.  
  7389.  ─────────────────────────────────────────────────────────────────────────────
  7390.  
  7391.  |                                          Bitwise inclusive OR             L
  7392.  
  7393.  ─────────────────────────────────────────────────────────────────────────────
  7394.  Operator                                   Name or Meaning                  A
  7395.  ─────────────────────────────────────────────────────────────────────────────
  7396. ─────────────────────────────────────────────────────────────────────────────
  7397.  
  7398.  &&                                         Logical AND                      L
  7399.  
  7400.  ─────────────────────────────────────────────────────────────────────────────
  7401.  
  7402.  ||                                         Logical OR                       L
  7403.  
  7404.  ─────────────────────────────────────────────────────────────────────────────
  7405.  
  7406.  e1?e2:e3                                   Conditional                      R
  7407.  
  7408.  ─────────────────────────────────────────────────────────────────────────────
  7409.  
  7410.  =                                          Simple assignment                R
  7411.  *=                                         Multiplication assignment
  7412.  /=                                         Division assignment
  7413.  %=                                         Modulus assignment
  7414.  +=                                         Addition assignment
  7415.  Operator                                   Name or Meaning                  A
  7416.  ─────────────────────────────────────────────────────────────────────────────
  7417. +=                                         Addition assignment
  7418.  -=                                         Subtraction assignment
  7419.  <<=                                        Left-shift assignment
  7420.  >>=                                        Right-shift assignment
  7421.  &=                                         Bitwise-AND assignment
  7422.  ^=                                         Bitwise-exclusive-OR assignment
  7423.  |=                                         Bitwise-inclusive-OR assignment
  7424.  
  7425.  ─────────────────────────────────────────────────────────────────────────────
  7426.  
  7427.  ,                                          Comma                            L
  7428.  
  7429.  ─────────────────────────────────────────────────────────────────────────────
  7430.  
  7431.  
  7432.  
  7433.  
  7434.  Data Type Sizes
  7435.  
  7436.  The /J command-line option makes the char default to unsigned instead of
  7437.  signed. Any integral type that can be modified by the unsigned keyword can
  7438.  also be modified by signed, which is most useful when the /J option is in
  7439.  effect.
  7440.  
  7441. ╓┌───────────────┌──────────────────┌─────────┌──────────────────────────────╖
  7442.  Type Name       Alternative        Storage   Range of Values
  7443.                  Names
  7444.  ────────────────────────────────────────────────────────────────────────────
  7445.  char            signed char        1 byte    -128 to 127
  7446.  
  7447.  unsigned char   ─                  1 byte    0 to 255
  7448.  
  7449.  ────────────────────────────────────────────────────────────────────────────
  7450.  
  7451.  int             signed, signed     2 bytes   -32,768 to 32,767
  7452.                  int
  7453.  
  7454.  short           short int, signed  2 bytes   -32,768 to 32,767
  7455.                  short, signed
  7456.                  short int
  7457.  Type Name       Alternative        Storage   Range of Values
  7458.                  Names
  7459.  ────────────────────────────────────────────────────────────────────────────
  7460.                 short int
  7461.  
  7462.  unsigned short  unsigned short     2 bytes   0 to 65,535
  7463.                  int
  7464.  
  7465.  ────────────────────────────────────────────────────────────────────────────
  7466.  
  7467.  long            long int, signed   4 bytes   -2,147,483,648 to
  7468.                  long, signed long            2,147,483,647
  7469.                  int
  7470.  
  7471.  unsigned long   unsigned long int  4 bytes   0 to 4,294,967,295
  7472.  
  7473.  ────────────────────────────────────────────────────────────────────────────
  7474.  
  7475.  _segment        ─                  2 bytes   0 to 65,535
  7476.  
  7477.  enum            ─                  2 bytes   -32,768 to 32,767
  7478.  Type Name       Alternative        Storage   Range of Values
  7479.                  Names
  7480.  ────────────────────────────────────────────────────────────────────────────
  7481. enum            ─                  2 bytes   -32,768 to 32,767
  7482.  
  7483.  float           ─                  4 bytes   Approximately 1.2E-38 to
  7484.                                               3.4E+38 (7-digit precision)
  7485.  
  7486.  double          ─                  8 bytes   Approximately 2.2E-308 to
  7487.                                               1.8E+308 (15-digit precision)
  7488.  
  7489.  long double     ─                  10 bytes  Approximately 1.2E+4932 to
  7490.                                               3.4E-4932 (19-digit precision)
  7491.  
  7492.  ────────────────────────────────────────────────────────────────────────────
  7493.  
  7494.  
  7495.  
  7496.  
  7497.  Preprocessor Directives
  7498.  
  7499.  #define id sub                    Defines a text-substitution macro or a
  7500.  #define id(param) sub             function macro. All subsequent cases of
  7501.                                    the identifier id are replaced by the
  7502.                                    substitution text sub. If a
  7503.                                    parenthesized parameter list param
  7504.                                    follows id, each occurrence of id(param)
  7505.                                    is replaced with a version of sub
  7506.                                    modified by substituting actual
  7507.                                    arguments for formal parameters.
  7508.  
  7509.  #undef identifier                 Removes (undefines) the current
  7510.                                    definition of identifier.
  7511.  
  7512.  #error message                    Displays a diagnostic message on the
  7513.                                    standard error and returns a nonzero
  7514.                                    (error) code when the compiler
  7515.                                    terminates.
  7516.  
  7517.  #include "path-spec"              Treats the contents of the file
  7518.  #include <path-spec>              specified by path-spec as if it were
  7519.                                    part of the current file. If path-spec
  7520.                                    is enclosed in double quotation marks,
  7521.                                    the current directory is searched first,
  7522.                                    followed by any other directories in the
  7523.                                    path. If path-spec is enclosed in angle
  7524.                                    brackets, the standard include directory
  7525.                                    (defined by the environment variable
  7526.                                    INCLUDE) is searched first.
  7527.  
  7528.  #if expression                    Checks each expression associated with a
  7529.     «text»                         #if or #elif directive until a nonzero
  7530.  «#elif expression                 restricted constant expression is found,
  7531.     text»                          then processes the text associated with
  7532.   .                                that restricted constant expression. If
  7533.   .                                there is a #else clause, the text
  7534.   .                                associated with it is only processed if
  7535.  «#else                            no restricted constant expression in the
  7536.     text»                          #if or #elif clauses has a nonzero value.
  7537.  #endif
  7538.  
  7539.  #ifdef id                         Checks to see whether id is currently
  7540.     #if defined (id)               defined. The #ifdef directive processes
  7541.  .                                 the statements within the block if id is
  7542.  .                                 currently defined, or skips ahead to the
  7543.  .                                 #endif if it isn't. The #ifndef
  7544.  #endif                            directive processes the statements if
  7545.                                    the definition is missing, or skips
  7546.                                    ahead if it is present. The #ifdef
  7547.                                    directive is equivalent to the
  7548.                                    ANSI-standard directive #if defined(id),
  7549.                                    and #ifndef is equivalent to #if
  7550.                                    !defined(id).
  7551.  
  7552.  #line constant                    Changes the compiler's internally-stored
  7553.  «"name "»                         line number to
  7554.                                    constant, and changes the internal file
  7555.                                    name to filename. The
  7556.                                    current line number and file name are
  7557.                                    available through the predefined
  7558.                                    identifiers __LINE__ and __FILE__.
  7559.  
  7560.  #pragma directive                 Instructs the compiler to effect the
  7561.                                    implementation-specific feature
  7562.                                    indicated by directive.
  7563.  
  7564.  
  7565.  Preprocessor Operators
  7566.  
  7567.  #operand                          Puts quotation marks around operand,
  7568.                                    treating it as a string
  7569.  
  7570.  token1##token2                    Pastes token1 and token2 together
  7571.  
  7572.  #@parameter                       Expands the argument to a quoted
  7573.                                    character
  7574.  
  7575.  
  7576.  Pragmas
  7577.  
  7578.  alloc_text                        #pragma alloc_text ( text-segment,
  7579.                                    function1«, function2»... )
  7580.  
  7581.                                    Places the specified functions in the
  7582.                                    given text segment.
  7583.  
  7584.  check_pointer                     #pragma check_pointer ( «{ on | off }» )
  7585.  
  7586.                                    Instructs the compiler to turn off
  7587.                                    pointer checking if off is specified, or
  7588.                                    turn on pointer checking if on is
  7589.                                    specified. The check _pointer pragma
  7590.                                    only works when you compile with the
  7591.                                    Quick Compile (/qc) option. If check
  7592.                                    _pointer is specified with no arguments,
  7593.                                    it toggles the pointer-checking setting
  7594.                                    currently in effect.
  7595.  
  7596.  check_stack                       #pragma check_stack ( «{ on | off }» )
  7597.  
  7598.                                    Instructs the compiler to turn off stack
  7599.                                    probes if off is given, or turn on stack
  7600.                                    probes if on is given. If no argument is
  7601.                                    given, stack probes are treated
  7602.                                    according to the default (on unless /Gs
  7603.                                    was used).
  7604.  
  7605.  comment                           #pragma comment( commenttype «,"
  7606.                                    commentstring"»... )
  7607.  
  7608.                                    Directs the compiler to place a comment
  7609.                                    record in the object file. The parameter
  7610.                                    commenttype specifies a compiler, exestr,
  7611.                                    lib, or user comment record, and
  7612.                                    commentstring (enclosed in quotation
  7613.                                    marks) provides additional information.
  7614.  
  7615.  function                          #pragma function( function1«, function2
  7616.                                    ...» )
  7617.  
  7618.                                    Directs the compiler to generate
  7619.                                    function calls instead of the intrinsic
  7620.                                    forms for each function listed.
  7621.  
  7622.  intrinsic                         #pragma intrinsic( function1«, function2
  7623.                                    ...» )
  7624.  
  7625.                                    Instructs the compiler to generate the
  7626.                                    intrinsic forms of the listed functions.
  7627.  
  7628.  linesize                          #pragma linesize( «characters» )
  7629.  
  7630.                                    Sets the number of characters per line
  7631.                                    in the source listing.
  7632.  
  7633.  loop_opt                          #pragma loop_opt( «{ off | on }» )
  7634.  
  7635.                                    Turns loop optimizing on or off. Without
  7636.                                    an argument, the pragma directs the
  7637.                                    compiler to revert to the behavior
  7638.                                    specified on the command line.
  7639.  
  7640.  message                           #pragma message( messagestring )
  7641.  
  7642.                                    Sends a message to the standard output.
  7643.                                    The messagestring parameter is a string
  7644.                                    literal that contains the message.
  7645.  
  7646.  optimize                          #pragma optimize( "«o_string»" { off |
  7647.                                    on } )
  7648.  
  7649.                                    Enables or disables one or more
  7650.                                    optimizing options. The optional
  7651.                                    o_string list can include one or more of
  7652.                                    the following characters:
  7653.  
  7654.                                    a           Assume no aliases in the
  7655.                                                following code
  7656.  
  7657.                                    c           Enable local common
  7658.                                                subexpressions
  7659.  
  7660.                                    e           Enable global register
  7661.                                                allocation
  7662.  
  7663.                                    g           Enable global common
  7664.                                                subexpressions
  7665.  
  7666.                                    l           Optimize loops
  7667.  
  7668.                                    n           Disable unsafe loop
  7669.                                                optimizations
  7670.  
  7671.                                    p           Ensure floating-point
  7672.                                                consistency
  7673.  
  7674.                                    t           Optimize for speed
  7675.  
  7676.                                    w           Assume no aliases except
  7677.                                                across function calls
  7678.  
  7679.                                    If the list is empty, the compiler
  7680.                                    reverts to the default settings. If on
  7681.                                    or off is omitted, the given option is
  7682.                                    toggled.
  7683.  
  7684.  pack                              #pragma pack( «number» )
  7685.  
  7686.                                    Specifies packing alignment for struct
  7687.                                    types, where number is 1, 2, or 4.
  7688.                                    Without an argument, packing reverts to
  7689.                                    the behavior specified on the command
  7690.                                    line. The /Zp option without number is
  7691.                                    equivalent to #pragma pack(1). In the
  7692.                                    absence of the /Zp option, the default
  7693.                                    is #pragma pack(2).
  7694.  
  7695.  page                              #pragma page( «pages» )
  7696.  
  7697.                                    Directs the compiler to skip the
  7698.                                    specified number of pages in the source
  7699.                                    listing where the pragma appears.
  7700.  
  7701.  pagesize                          #pragma pagesize( «lines» )
  7702.  
  7703.                                    Sets the number of lines per page in the
  7704.                                    source listing.
  7705.  
  7706.  same_seg                          #pragma same_seg( variable1«, variable2
  7707.                                    »... )
  7708.  
  7709.                                    Directs the compiler to assume that the
  7710.                                    external far variables are allocated in
  7711.                                    the same segment. The /ND option must be
  7712.                                    used when compiling the modules
  7713.                                    containing the listed variables to
  7714.                                    ensure that these variables are actually
  7715.                                    allocated in the given data segment.
  7716.  
  7717.  skip                              #pragma skip( «lines» )
  7718.  
  7719.                                    Skips specified number of lines and
  7720.                                    generates a newline in the source
  7721.                                    listing at the point where the pragma
  7722.                                    appears.
  7723.  
  7724.  subtitle                          #pragma subtitle( "subtitlename" )
  7725.  
  7726.                                    Sets a subtitle in the source listing.
  7727.  
  7728.  title                             #pragma title( "titlename" )
  7729.  
  7730.                                    Sets the title for the source listing.
  7731.                                    It appears in the upper left corner of
  7732.                                    each page of the listing.
  7733.  
  7734.  
  7735.  
  7736.  
  7737.  
  7738.  
  7739.  PART III  Run-time Library Functions
  7740.  ────────────────────────────────────────────────────────────────────────────
  7741.  
  7742.  
  7743.  
  7744.  
  7745.  
  7746.  
  7747.  Routines by Category
  7748.  ────────────────────────────────────────────────────────────────────────────
  7749.  
  7750.  The Microsoft C run-time library contains approximately 500 routines useful
  7751.  for performing common programming tasks. In this part of the C Reference the
  7752.  routines are listed first by category of tasks and then alphabetically.
  7753.  
  7754.  The alphabetical listing is more complete. It gives the following
  7755.  information for each routine: the prototype, the header files that contain
  7756.  the routine, a definition of each argument, the return value, and a brief
  7757.  description of the function the routine performs. In addition, check boxes
  7758.  indicate whether the routine is ANSI-compatible and the operating systems it
  7759.  works under.
  7760.  
  7761.  This section lists and briefly describes the library routines according to
  7762.  the categories of tasks they perform. These are the main categories of
  7763.  library routines:
  7764.  
  7765.  Buffer manipulation               Memory allocation
  7766.  
  7767.  Character classification and      Process and environment
  7768.  conversion                        control
  7769.  
  7770.  Data conversion                   Searching and sorting
  7771.  
  7772.  Directory control                 String manipulation
  7773.  
  7774.  File handling                     System calls
  7775.  
  7776.  Graphics input and output         Time
  7777.  
  7778.  Internationalization              Variable-length argument lists
  7779.  
  7780.  Math
  7781.  
  7782.  
  7783.  Buffer Manipulation
  7784.  
  7785.  The buffer-manipulation routines are useful for working with areas of memory
  7786.  on a character-by-character basis. Routines preceded by the _f prefix are
  7787.  model-independent versions.
  7788.  
  7789.  Routine                           Use
  7790.  ────────────────────────────────────────────────────────────────────────────
  7791.  memccpy, _fmemccpy                Copies characters from one buffer to
  7792.                                    another, until a given character or a
  7793.                                    given number of characters has been
  7794.                                    copied
  7795.  
  7796.  memchr, _fmemchr                  Returns a pointer to the first
  7797.                                    occurrence, within a specified number of
  7798.                                    characters, of a given character in the
  7799.                                    buffer
  7800.  
  7801.  memcmp, _fmemcmp                  Compares a specified number of
  7802.                                    characters from two buffers
  7803.  
  7804.  memcpy, _fmemcpy                  Copies a specified number of characters
  7805.                                    from one buffer to another
  7806.  
  7807.  memicmp, _fmemicmp                Compares a specified number of
  7808.                                    characters from two buffers without
  7809.                                    regard to the case of the letters
  7810.                                    (uppercase and lowercase treated as
  7811.                                    equivalent)
  7812.  
  7813.  memmove,                          Copies a specified number of characters
  7814.  _fmemmove                         from one buffer to another
  7815.  
  7816.  memset, _fmemset                  Uses a given character to initialize a
  7817.                                    specified number of bytes in the buffer
  7818.  
  7819.  
  7820.  swab                              Swaps bytes of data and stores them at
  7821.                                    the specified location
  7822.  
  7823.  
  7824.  Character Classification and Conversion
  7825.  
  7826.  The character classification and conversion routines let you test individual
  7827.  characters in a variety of ways and convert between uppercase and lowercase
  7828.  characters.
  7829.  
  7830.  Routine                           Use
  7831.  ────────────────────────────────────────────────────────────────────────────
  7832.  isalnum                           Tests for alphanumeric character
  7833.  
  7834.  isalpha                           Tests for alphabetic character
  7835.  
  7836.  isascii                           Tests for ASCII character
  7837.  
  7838.  iscntrl                           Tests for control character
  7839.  
  7840.  isdigit                           Tests for decimal digit
  7841.  
  7842.  isgraph                           Tests for printable character except
  7843.                                    space
  7844.  
  7845.  islower                           Tests for lowercase character
  7846.  
  7847.  isprint                           Tests for printable character
  7848.  
  7849.  ispunct                           Tests for punctuation character
  7850.  
  7851.  isspace                           Tests for white-space character
  7852.  
  7853.  isupper                           Tests for uppercase character
  7854.  
  7855.  isxdigit                          Tests for hexadecimal digit
  7856.  
  7857.  toascii                           Converts character to ASCII code
  7858.  
  7859.  tolower                           Tests character and converts to
  7860.                                    lowercase if
  7861.                                    uppercase
  7862.  
  7863.  _tolower                          Converts character to lowercase
  7864.                                    (unconditional)
  7865.  
  7866.  toupper                           Tests character and converts to
  7867.                                    uppercase if
  7868.                                    lowercase
  7869.  
  7870.  _toupper                          Converts character to uppercase
  7871.                                    (unconditional)
  7872.  
  7873.  
  7874.  Data Conversion
  7875.  
  7876.  The data-conversion routines convert numbers to strings of ASCII characters,
  7877.  and vice versa. These routines are implemented as functions.
  7878.  
  7879.  Routine                           Use
  7880.  ────────────────────────────────────────────────────────────────────────────
  7881.  abs                               Finds absolute value of integer
  7882.  
  7883.  atof                              Converts string to float
  7884.  
  7885.  atoi                              Converts string to int
  7886.  
  7887.  atol                              Converts string to long
  7888.  
  7889.  _atold                            Converts string to long double
  7890.  
  7891.  ecvt                              Converts double to string
  7892.  
  7893.  fcvt                              Converts double to string
  7894.  
  7895.  gcvt                              Converts double to string
  7896.  
  7897.  itoa                              Converts int to string
  7898.  
  7899.  labs                              Finds absolute value of long integer
  7900.  
  7901.  ltoa                              Converts long to string
  7902.  
  7903.  strtod                            Converts string to double
  7904.  
  7905.  strtol                            Converts string to a long integer
  7906.  
  7907.  _strtold                          Converts string to long double
  7908.  
  7909.  strtoul                           Converts string to an unsigned long
  7910.                                    integer
  7911.  
  7912.  ultoa                             Converts unsigned long to string
  7913.  
  7914.  
  7915.  Directory Control
  7916.  
  7917.  These routines let a program access, modify, and obtain information about
  7918.  the directory structure. These routines are functions.
  7919.  
  7920.  Routine                           Use
  7921.  ────────────────────────────────────────────────────────────────────────────
  7922.  chdir                             Changes current working directory
  7923.  
  7924.  _chdrive                          Changes current drive
  7925.  
  7926.  getcwd                            Gets current working directory
  7927.  
  7928.  _getdcwd                          Gets current working directory for the
  7929.                                    specified drive
  7930.  
  7931.  _getdrive                         Gets the current disk drive
  7932.  
  7933.  mkdir                             Makes a new directory
  7934.  
  7935.  rmdir                             Removes a directory
  7936.  
  7937.  _searchenv                        Searches for a given file on specified
  7938.                                    paths
  7939.  
  7940.  
  7941.  File Handling
  7942.  
  7943.  The file-handling routines let you create, manipulate, and delete files.
  7944.  They also set and check file-access permissions.
  7945.  
  7946.  Routine                           Use
  7947.  ────────────────────────────────────────────────────────────────────────────
  7948.  access                            Checks file-permission setting
  7949.  
  7950.  chmod                             Changes file-permission setting
  7951.  
  7952.  chsize                            Changes file size
  7953.  
  7954.  filelength                        Gets file length
  7955.  
  7956.  fstat                             Gets file-status information on handle
  7957.  
  7958.  _fullpath                         Makes an absolute path name from a
  7959.                                    relative path name
  7960.  
  7961.  isatty                            Checks for character device
  7962.  
  7963.  locking                           Locks areas of file (available with OS/2
  7964.                                    and
  7965.                                    DOS versions 3.0 and later)
  7966.  
  7967.  _makepath                         Merges path-name components into a
  7968.                                    single, full path name
  7969.  
  7970.  mktemp                            Creates unique file name
  7971.  
  7972.  remove                            Deletes file
  7973.  
  7974.  rename                            Renames file
  7975.  
  7976.  setmode                           Sets file-translation mode
  7977.  
  7978.  _splitpath                        Splits a path name into component pieces
  7979.  
  7980.  stat                              Gets file-status information on named
  7981.                                    file
  7982.  
  7983.  umask                             Sets default-permission mask
  7984.  
  7985.  unlink                            Deletes file
  7986.  
  7987.  
  7988.  Graphics
  7989.  
  7990.  Microsoft C graphics routines offer a wide variety of graphics functions,
  7991.  low-level graphics primitives, font functions, and presentation graphics
  7992.  (displays such as graphs and pie charts).
  7993.  
  7994.  
  7995.  Low-Level Graphics and Character-Font Functions
  7996.  
  7997.  Routine                           Use
  7998.  ────────────────────────────────────────────────────────────────────────────
  7999.  _arc, _arc_w,  _arc_wxy           Draws an arc
  8000.  
  8001.  _clearscreen                      Clears the screen and fills it with the
  8002.                                    current background color
  8003.  
  8004.  _displaycursor                    Sets the cursor on or off on exit from a
  8005.                                    graphics routine
  8006.  
  8007.  _ellipse, _ellipse_w,             Draws an ellipse or circle
  8008.  _ellipse_wxy
  8009.  
  8010.  _floodfill,                       Flood-fills an area of the screen with
  8011.  _floodfill_w                      the current color
  8012.  
  8013.  _getactivepage                    Gets the current active page number
  8014.  
  8015.  _getarcinfo                       Determines the end points in viewport
  8016.                                    coordinates of the most recently drawn
  8017.                                    arc or pie
  8018.  
  8019.  _getbkcolor                       Returns the current background color
  8020.  
  8021.  _getcolor                         Gets the current color
  8022.  
  8023.  _getcurrentposition,              Obtains the current graphics-output
  8024.  _getcurrentposition_w             position used by _lineto and _outgtext
  8025.  
  8026.  _getfillmask                      Gets the current fill mask
  8027.  
  8028.  _getfontinfo                      Obtains the current font characteristics
  8029.  
  8030.  _getgtextextent                   Determines the width in pixels of
  8031.                                    specified text in the current font
  8032.  
  8033.  _getgtextvector                   Gets orientation of font text output
  8034.  
  8035.  _getimage,                        Stores a screen image in memory
  8036.  _getimage_w,
  8037.  _getimage_wxy
  8038.  
  8039.  _getlinestyle                     Gets the current line style mask
  8040.  
  8041.  _getphyscoord                     Converts view coordinates to physical
  8042.                                    coordinates
  8043.  
  8044.  _getpixel, _getpixel_w            Obtains a pixel's color
  8045.  
  8046.  _gettextcolor                     Obtains the current text color
  8047.  
  8048.  _gettextcursor                    Returns the current cursor attribute
  8049.                                    (text modes only)
  8050.  
  8051.  _gettextposition                  Obtains the current text-output position
  8052.  
  8053.  _gettextwindow                    Gets the current text window boundaries
  8054.  
  8055.  _getvideoconfig                   Obtains status of current graphics
  8056.                                    environment
  8057.  
  8058.  _getvisualpage                    Gets the current visual page number
  8059.  
  8060.  _getviewcoord                     Converts physical coordinates to view
  8061.                                    coordinates
  8062.  
  8063.  _getviewcoord_w                   Converts window coordinates to view
  8064.                                    coordinates
  8065.  
  8066.  _getviewcoord_wxy                 Converts window coordinates in _wxycoord
  8067.                                    structure to view coordinates
  8068.  
  8069.  _getwindowcoord                   Converts view coordinates to window
  8070.                                    coordinates
  8071.  
  8072.  _getwritemode                     Gets the current logical write mode for
  8073.                                    line drawing
  8074.  
  8075.  _grstatus                         Returns the status of the most recent
  8076.                                    graphics function call
  8077.  
  8078.  _imagesize,                       Returns the size (in bytes) of the
  8079.  _imagesize_w,                     buffer needed to store the image
  8080.  _imagesize_wxy
  8081.  
  8082.  _lineto, _lineto_w                Draws a line from the current graphics
  8083.                                    output position to a specified point
  8084.  
  8085.  _moveto, _moveto_w                Moves the current graphics-output
  8086.                                    position to a specified point
  8087.  
  8088.  _outgtext                         Outputs the null-terminated text string
  8089.                                    using the current font and rotation on
  8090.                                    the screen at the current
  8091.                                    graphics-output position
  8092.  
  8093.  _outmem                           Prints text of a specified length from a
  8094.                                    memory
  8095.                                    buffer
  8096.  
  8097.  _outtext                          Outputs a text string to the screen at
  8098.                                    the current text position
  8099.  
  8100.  _pie, _pie_w, _pie_wxy            Draws a pie-slice-shaped figure
  8101.  
  8102.  _polygon,                         Draws or scan-fills a polygon
  8103.  _polygon_w,
  8104.  _polygon_wxy
  8105.  
  8106.  _putimage,                        Retrieves an image from memory and
  8107.  _putimage_w                       displays it
  8108.  
  8109.  _rectangle,                       Draws or scan-fills a rectangle
  8110.  _rectangle_w,
  8111.  _rectangle_wxy
  8112.  
  8113.  _registerfonts                    Initializes the font graphics system
  8114.  
  8115.  _remapallpalette                  Changes all colors in the current
  8116.                                    palette
  8117.  
  8118.  _remappalette                     Changes a single color in the current
  8119.                                    palette
  8120.  
  8121.  _scrolltextwindow                 Scrolls the current text window up or
  8122.                                    down
  8123.  
  8124.  _selectpalette                    Selects a predefined palette
  8125.  
  8126.  _setactivepage                    Sets memory area for the current active
  8127.                                    page
  8128.  
  8129.  _setbkcolor                       Sets the current background color
  8130.  
  8131.  _setcliprgn                       Limits graphic output to a region of the
  8132.                                    screen
  8133.  
  8134.  _setcolor                         Sets the current color
  8135.  
  8136.  _setfillmask                      Sets the current fill mask
  8137.  
  8138.  _setfont                          Finds a single font from the set of
  8139.                                    registered fonts
  8140.  
  8141.  _setgtextvector                   Sets the current orientation for font
  8142.                                    text output
  8143.  
  8144.  _setlinestyle                     Sets the current line style mask
  8145.  
  8146.  _setpixel, _setpixel_w            Sets a pixel's color
  8147.  
  8148.  _settextcolor                     Sets the current text color
  8149.  
  8150.  _settextcursor                    Sets the current cursor attribute (text
  8151.                                    modes only)
  8152.  
  8153.  _settextposition                  Sets the current text position
  8154.  
  8155.  _settextrows                      Sets the number of text rows
  8156.  
  8157.  _settextwindow                    Defines the current text-display window
  8158.  
  8159.  _setvideomode                     Sets the video mode for the display
  8160.                                    screen
  8161.  
  8162.  _setvideomoderows                 Sets the video mode and the number of
  8163.                                    text rows
  8164.  
  8165.  _setvieworg                       Positions the view coordinate origin
  8166.  
  8167.  _setviewport                      Limits graphics output to a region of
  8168.                                    the screen and positions the view
  8169.                                    coordinate origin to the upper left
  8170.                                    corner of that region
  8171.  
  8172.  _setvisualpage                    Sets memory area for the current visual
  8173.                                    page
  8174.  
  8175.  _setwindow                        Defines a floating-point window
  8176.                                    coordinate system
  8177.  
  8178.  _setwritemode                     Sets logical write mode for line drawing
  8179.  
  8180.  _unregisterfonts                  Frees memory previously allocated and
  8181.                                    used by _registerfonts
  8182.  
  8183.  _wrapon                           Enables or disables line wrap
  8184.  
  8185.  
  8186.  Presentation Graphics Functions
  8187.  
  8188.  Routine                           Use
  8189.  ────────────────────────────────────────────────────────────────────────────
  8190.  _pg_analyzechart                  Analyzes a single series of data for a
  8191.                                    bar, column, or line chart
  8192.  
  8193.  _pg_analyzechartms                Analyzes a multiple series of data for a
  8194.                                    bar, column, or line chart
  8195.  
  8196.  _pg_analyzepie                    Analyzes data for a pie chart
  8197.  
  8198.  _pg_analyzescatter                Analyzes a single series of data for a
  8199.                                    scatter diagram
  8200.  
  8201.  _pg_analyzescatterms              Analyzes a multiple series of data for a
  8202.                                    scatter diagram
  8203.  
  8204.  _pg_chart                         Displays a single-series bar, column, or
  8205.                                    line chart
  8206.  
  8207.  _pg_chartms                       Displays a multiple-series bar, column,
  8208.                                    or line chart
  8209.  
  8210.  _pg_chartpie                      Displays a pie chart
  8211.  
  8212.  _pg_chartscatter                  Displays a scatter diagram for a single
  8213.                                    series of data
  8214.  
  8215.  _pg_chartscatterms                Displays a scatter diagram for more than
  8216.                                    one series of data
  8217.  
  8218.  _pg_defaultchart                  Initializes all necessary variables in
  8219.                                    the chart environment for a specified
  8220.                                    chart type
  8221.  
  8222.  _pg_getchardef                    Retrieves the current 8-by-8-pixel bit
  8223.                                    map for a specified character
  8224.  
  8225.  _pg_getpalette                    Retrieves current colors, line styles,
  8226.                                    fill patterns, and plot characters for
  8227.                                    all presentation graphics palettes
  8228.  
  8229.  _pg_getstyleset                   Retrieves the contents of the current
  8230.                                    styleset
  8231.  
  8232.  _pg_hlabelchart                   Writes text horizontally on the screen
  8233.  
  8234.  _pg_initchart                     Initializes the presentation graphics
  8235.                                    library
  8236.  
  8237.  _pg_resetpalette                  Sets current colors, line styles, fill
  8238.                                    patterns, and plot characters to the
  8239.                                    default values for the current screen
  8240.                                    mode
  8241.  
  8242.  _pg_resetstyleset                 Resets the contents of the current
  8243.                                    styleset to the default value for the
  8244.                                    current screen mode
  8245.  
  8246.  _pg_setchardef                    Sets the 8-by-8-pixel bit map for a
  8247.                                    specified
  8248.                                    character
  8249.  
  8250.  _pg_setpalette                    Sets current colors, line styles, fill
  8251.                                    patterns, and plot characters for all
  8252.                                    presentation graphics palettes
  8253.  
  8254.  _pg_setstyleset                   Sets the contents of the current
  8255.                                    styleset
  8256.  
  8257.  _pg_vlabelchart                   Writes text vertically on the screen
  8258.  
  8259.  
  8260.  Input and Output
  8261.  
  8262.  The input and output (I/O) routines of the standard C library allow you to
  8263.  read and write data to and from files and devices.
  8264.  
  8265.  
  8266.  Stream Routines
  8267.  
  8268.  Routine                           Use
  8269.  ────────────────────────────────────────────────────────────────────────────
  8270.  clearerr                          Clears the error indicator for a stream
  8271.  
  8272.  fclose                            Closes a stream
  8273.  
  8274.  fcloseall                         Closes all open streams
  8275.  
  8276.  fdopen                            Associates a stream with an open file
  8277.                                    handle
  8278.  
  8279.  feof                              Tests for end-of-file on a stream
  8280.  
  8281.  ferror                            Tests for error on a stream
  8282.  
  8283.  fflush                            Flushes a stream
  8284.  
  8285.  fgetc                             Reads a character from a stream
  8286.                                    (function version)
  8287.  
  8288.  fgetchar                          Reads a character from stdin (function
  8289.                                    version)
  8290.  
  8291.  fgetpos                           Gets the position indicator of a stream
  8292.  
  8293.  fgets                             Reads a string from a stream
  8294.  
  8295.  fileno                            Gets file handle associated with a
  8296.                                    stream
  8297.  
  8298.  flushall                          Flushes all streams
  8299.  
  8300.  fopen                             Opens a stream
  8301.  
  8302.  fprintf                           Writes formatted data to a stream
  8303.  
  8304.  fputc                             Writes a character to a stream (function
  8305.                                    version)
  8306.  
  8307.  fputchar                          Writes a character to stdout (function
  8308.                                    version)
  8309.  
  8310.  fputs                             Writes a string to a stream
  8311.  
  8312.  fread                             Reads unformatted data from a stream
  8313.  
  8314.  freopen                           Reassigns a FILE pointer to a new file
  8315.  
  8316.  fscanf                            Reads formatted data from a stream
  8317.  
  8318.  fseek                             Moves file position to a given location
  8319.  
  8320.  fsetpos                           Sets the position indicator of a stream
  8321.  
  8322.  _fsopen                           Opens a stream with file sharing
  8323.  
  8324.  ftell                             Gets current file position
  8325.  
  8326.  fwrite                            Writes unformatted data items to a
  8327.                                    stream
  8328.  
  8329.  getc                              Reads a character from a stream
  8330.  
  8331.  getchar                           Reads a character from stdin
  8332.  
  8333.  gets                              Reads a line from stdin
  8334.  
  8335.  getw                              Reads a binary int item from stream
  8336.  
  8337.  printf                            Writes formatted data to stdout
  8338.  
  8339.  putc                              Writes a character to a stream
  8340.  
  8341.  putchar                           Writes a character to stdout
  8342.  
  8343.  puts                              Writes a line to a stream
  8344.  
  8345.  putw                              Writes a binary int item to a stream
  8346.  
  8347.  rewind                            Moves file position to beginning of a
  8348.                                    stream
  8349.  
  8350.  rmtmp                             Removes temporary files created by
  8351.                                    tmpfile
  8352.  
  8353.  scanf                             Reads formatted data from stdin
  8354.  
  8355.  setbuf                            Controls stream buffering
  8356.  
  8357.  setvbuf                           Controls stream buffering and buffer
  8358.                                    size
  8359.  
  8360.  sprintf                           Writes formatted data to string
  8361.  
  8362.  sscanf                            Reads formatted data from string
  8363.  
  8364.  tempnam                           Generates a temporary file name in given
  8365.                                    directory
  8366.  
  8367.  tmpfile                           Creates a temporary file
  8368.  
  8369.  tmpnam                            Generates a temporary file name
  8370.  
  8371.  ungetc                            Places a character in the buffer
  8372.  
  8373.  vfprintf                          Writes formatted data to a stream
  8374.  
  8375.  vprintf                           Writes formatted data to stdout
  8376.  
  8377.  vsprintf                          Writes formatted data to a string
  8378.  
  8379.  
  8380.  Low-Level Routines
  8381.  
  8382.  Routine                           Use
  8383.  ────────────────────────────────────────────────────────────────────────────
  8384.  close                             Closes a file
  8385.  
  8386.  creat                             Creates a file
  8387.  
  8388.  dup                               Creates a second handle for a file
  8389.  
  8390.  dup2                              Reassigns a handle to a file
  8391.  
  8392.  eof                               Tests for end-of-file
  8393.  
  8394.  lseek                             Repositions file pointer to a given
  8395.                                    location
  8396.  
  8397.  open                              Opens a file
  8398.  
  8399.  read                              Reads data from a file
  8400.  
  8401.  sopen                             Opens a file for file sharing
  8402.  
  8403.  tell                              Gets current file-pointer position
  8404.  
  8405.  umask                             Sets default file-permission mask
  8406.  
  8407.  write                             Writes data to a file
  8408.  
  8409.  
  8410.  Console and Port I/O
  8411.  
  8412.  Routine                           Use
  8413.  ────────────────────────────────────────────────────────────────────────────
  8414.  cgets                             Reads a string from the console
  8415.  
  8416.  cprintf                           Writes formatted data to the console
  8417.  
  8418.  cputs                             Writes a string to the console
  8419.  
  8420.  cscanf                            Reads formatted data from the console
  8421.  
  8422.  getch                             Reads a character from the console
  8423.  
  8424.  getche                            Reads a character from the console and
  8425.                                    echoes it
  8426.  
  8427.  inp                               Reads one byte from the specified I/O
  8428.                                    port
  8429.  
  8430.  inpw                              Reads a two-byte word from the specified
  8431.                                    I/O port
  8432.  
  8433.  kbhit                             Checks for a keystroke at the console
  8434.  
  8435.  outp                              Writes one byte to the specified I/O
  8436.                                    port
  8437.  
  8438.  outpw                             Writes a two-byte word to the specified
  8439.                                    I/O port
  8440.  
  8441.  putch                             Writes a character to the console
  8442.  
  8443.  ungetch                           "Ungets" the last character read from
  8444.                                    the console so that it becomes the next
  8445.                                    character read
  8446.  
  8447.  
  8448.  Internationalization
  8449.  
  8450.  Internationalization routines are useful for creating different versions of
  8451.  a program for international markets.
  8452.  
  8453.  Routine                           Use
  8454.  ────────────────────────────────────────────────────────────────────────────
  8455.  localeconv                        Sets a structure with appropriate values
  8456.                                    for formatting numeric quantities
  8457.  
  8458.  setlocale                         Selects the appropriate locale for the
  8459.                                    program
  8460.  
  8461.  strcoll                           Compares strings using locale-specific
  8462.                                    information
  8463.  
  8464.  strftime                          Formats a date and time string
  8465.  
  8466.  strxfrm                           Transforms a string based on
  8467.                                    locale-specific
  8468.                                    information
  8469.  
  8470.  
  8471.  Math
  8472.  
  8473.  The math routines allow you to perform common mathematical calculations.
  8474.  Many math routines work with floating-point values and therefore require
  8475.  floating-point support, which is linked in from the C run-time library.
  8476.  Routines ending with l support an 80-bit data type for the corresponding
  8477.  routines. These routines return a long double value.
  8478.  
  8479.  Routine                           Use
  8480.  ────────────────────────────────────────────────────────────────────────────
  8481.  acos, acosl                       Calculates the arccosine
  8482.  
  8483.  asin, asinl                       Calculates the arcsine
  8484.  
  8485.  atan, atanl                       Calculates the arctangent
  8486.  
  8487.  atan2, atan2l                     Calculates the arctangent
  8488.  
  8489.  bessel1                           Calculates Bessel functions
  8490.  
  8491.  cabs, cabsl                       Finds the absolute value of a complex
  8492.                                    number
  8493.  
  8494.  ceil, ceill                       Finds the integer ceiling
  8495.  
  8496.  _clear87                          Gets and clears the floating-point
  8497.                                    status word
  8498.  
  8499.  _control87                        Gets the old floating-point control word
  8500.                                    and sets a new control-word value
  8501.  
  8502.  cos, cosl                         Calculates the cosine
  8503.  
  8504.  cosh, coshl                       Calculates the hyperbolic cosine
  8505.  
  8506.  dieeetomsbin                      Converts IEEE double-precision number to
  8507.                                    Microsoft (MS) binary format
  8508.  
  8509.  div                               Divides one integer by another,
  8510.                                    returning the quotient and remainder
  8511.  
  8512.  dmsbintoieee                      Converts Microsoft binary
  8513.                                    double-precision number to IEEE format
  8514.  
  8515.  exp, expl                         Calculates the exponential function
  8516.  
  8517.  fabs, fabsl                       Finds the absolute value
  8518.  
  8519.  fieeetomsbin                      Converts IEEE single-precision number to
  8520.                                    Microsoft binary format
  8521.  
  8522.  floor, floorl                     Finds the largest integer less than or
  8523.                                    equal to the
  8524.                                    argument
  8525.  
  8526.  fmod, fmodl                       Finds the floating-point remainder
  8527.  
  8528.  fmsbintoieee                      Converts Microsoft binary
  8529.                                    single-precision number to IEEE format
  8530.  
  8531.  _fpreset                          Reinitializes the floating-point-math
  8532.                                    package
  8533.  
  8534.  frexp, frexpl                     Calculates an exponential value
  8535.  
  8536.  hypot, hypotl                     Calculates the hypotenuse of right
  8537.                                    triangle
  8538.  
  8539.  ldexp, ldexpl                     Calculates the argument times 2exp
  8540.  
  8541.  ldiv                              Divides one long integer by another,
  8542.                                    returning the quotient and remainder
  8543.  
  8544.  log, logl                         Calculates the natural logarithm
  8545.  
  8546.  log10, log10l                     Calculates the base-10 logarithm
  8547.  
  8548.  _lrotl, _lrotr                    Shifts an unsigned long int item left (
  8549.                                    _lrotl) or right (_lrotr)
  8550.  
  8551.  matherr, _matherrl                Handles math errors
  8552.  
  8553.  max, min                          Returns the larger or smaller of two
  8554.                                    values
  8555.  
  8556.  modf, modfl                       Breaks down the argument into integer
  8557.                                    and fractional parts
  8558.  
  8559.  pow, powl                         Calculates a value raised to a power
  8560.  
  8561.  rand                              Gets a pseudorandom number
  8562.  
  8563.  _rotl, _rotr                      Shifts an unsigned int item left (_rotl)
  8564.                                    or right (_rotr)
  8565.  
  8566.  sin, sinl                         Calculates the sine
  8567.  
  8568.  sinh, sinhl                       Calculates the hyperbolic sine
  8569.  
  8570.  sqrt, sqrtl                       Finds the square root
  8571.  
  8572.  srand                             Initializes a pseudorandom series
  8573.  
  8574.  _status87                         Gets the floating-point status word
  8575.  
  8576.  tan, tanl                         Calculates the tangent
  8577.  
  8578.  tanh, tanhl                       Calculates the hyperbolic tangent
  8579.  
  8580.  1 The bessel routine does not correspond to a single function, but to 12
  8581.  functions named j0, j1, jn, y0, y1, yn, _j0l, _j1l, _jnl, _y0l, _y1l, and
  8582.  _ynl.
  8583.  
  8584.  
  8585.  Memory Allocation
  8586.  
  8587.  The memory-allocation routines allow you to allocate, free, and reallocate
  8588.  blocks of memory.
  8589.  
  8590.  Routine                           Use
  8591.  ────────────────────────────────────────────────────────────────────────────
  8592.  alloca                            Allocates a block of memory from the
  8593.                                    program's stack
  8594.  
  8595.  _bfreeseg                         Frees a based heap
  8596.  
  8597.  _bheapseg                         Allocates a based heap
  8598.  
  8599.  calloc, _bcalloc,                 Allocates storage for an array
  8600.  _fcalloc, _ncalloc
  8601.  
  8602.  _expand, _bexpand,                Expands or shrinks a block of memory
  8603.  _fexpand, _nexpand                without moving its location
  8604.  
  8605.  free, _bfree,                     Frees an allocated block
  8606.  _ffree, _nfree
  8607.  
  8608.  _freect                           Returns approximate number of items of
  8609.                                    given size that could be allocated in
  8610.                                    the near heap
  8611.  
  8612.  halloc                            Allocates storage for huge array
  8613.  
  8614.  _heapadd, _bheapadd               Adds memory to a heap
  8615.  
  8616.  _heapchk, _bheapchk, _fheapchk,   Checks a heap for consistency
  8617.  _nheapchk
  8618.  
  8619.  _heapmin,                         Releases unused memory in a heap
  8620.  _bheapmin,
  8621.  _fheapmin,
  8622.  _nheapmin
  8623.  
  8624.  _heapset, _bheapset,              Fills free heap entries with a specified
  8625.  _fheapset, _nheapset              value
  8626.  
  8627.  _heapwalk,                        Returns information about each entry in
  8628.  _bheapwalk,                       a heap
  8629.  _fheapwalk,
  8630.  _nheapwalk
  8631.  
  8632.  hfree                             Frees a block allocated by halloc
  8633.  
  8634.  malloc, _bmalloc,                 Allocates a block of memory
  8635.  _fmalloc, _nmalloc
  8636.  
  8637.  _memavl                           Returns approximate number of bytes
  8638.                                    available for allocation in the near
  8639.                                    heap
  8640.  
  8641.  _memmax                           Returns size of largest contiguous free
  8642.                                    block in the near heap
  8643.  
  8644.  _msize, _bmsize,                  Returns size of an allocated block
  8645.  _fmsize, _nmsize
  8646.  
  8647.  realloc, _brealloc,               Reallocates a block to a new size
  8648.  _frealloc, _nrealloc
  8649.  
  8650.  stackavail                        Returns size of stack space available
  8651.                                    for allocation with alloca
  8652.  
  8653.  
  8654.  Process and Environment Control
  8655.  
  8656.  The process-control routines allow you to start, stop, and manage processes
  8657.  from within a program. Environment-control routines allow you to get and
  8658.  change information about the operating-system environment.
  8659.  
  8660.  Routine                           Use
  8661.  ────────────────────────────────────────────────────────────────────────────
  8662.  abort                             Aborts a process without flushing
  8663.                                    buffers or calling functions registered
  8664.                                    by atexit and onexit
  8665.  
  8666.  assert                            Tests for logic error
  8667.  
  8668.  atexit                            Schedules routines for execution at
  8669.                                    program
  8670.                                    termination
  8671.  
  8672.  _beginthread                      Creates an execution thread (OS/2 only)
  8673.  
  8674.  _cexit                            Performs the exit termination procedures
  8675.                                    (such as flushing buffers) and returns
  8676.                                    control to the calling program
  8677.  
  8678.  _c_exit                           Performs the _exit termination
  8679.                                    procedures without performing clean-up
  8680.                                    operations and returns control to the
  8681.                                    calling program
  8682.  
  8683.  cwait                             Suspends the calling process until a
  8684.                                    specified child process terminates (OS/2
  8685.                                    only)
  8686.  
  8687.  _endthread                        Terminates an execution thread (OS/2
  8688.                                    only)
  8689.  
  8690.  execl                             Executes child process with argument
  8691.                                    list
  8692.  
  8693.  execle                            Executes child process with argument
  8694.                                    list and given environment
  8695.  
  8696.  execlp                            Executes child process using PATH
  8697.                                    variable and argument list
  8698.  
  8699.  execlpe                           Executes child process using PATH
  8700.                                    variable, given environment, and
  8701.                                    argument list
  8702.  
  8703.  execv                             Executes child process with argument
  8704.                                    array
  8705.  
  8706.  execve                            Executes child process with argument
  8707.                                    array and given environment
  8708.  
  8709.  execvp                            Executes child process using PATH
  8710.                                    variable and argument array
  8711.  
  8712.  execvpe                           Executes child process using PATH
  8713.                                    variable, given environment, and
  8714.                                    argument array
  8715.  
  8716.  exit                              Calls functions registered by atexit and
  8717.                                    onexit, then flushes all buffers and
  8718.                                    closes all open files before terminating
  8719.                                    the process
  8720.  
  8721.  _exit                             Terminates process without processing
  8722.                                    atexit or onexit functions or flushing
  8723.                                    buffers
  8724.  
  8725.  getenv                            Gets the value of an environment
  8726.                                    variable
  8727.  
  8728.  getpid                            Gets process ID number
  8729.  
  8730.  longjmp                           Restores a saved stack environment
  8731.  
  8732.  onexit                            Schedules routines for execution at
  8733.                                    program
  8734.                                    termination
  8735.  
  8736.  _pclose                           Waits for a child command and closes the
  8737.                                    pipe on the associated stream
  8738.  
  8739.  perror                            Prints error message
  8740.  
  8741.  _pipe                             Creates a pipe
  8742.  
  8743.  _popen                            Creates a pipe and asynchronously
  8744.                                    executes a child copy of the command
  8745.                                    processor
  8746.  
  8747.  putenv                            Adds or changes the value of an
  8748.                                    environment
  8749.                                    variable
  8750.  
  8751.  raise                             Sends a signal to the calling process
  8752.  
  8753.  setjmp                            Saves a stack environment
  8754.  
  8755.  signal                            Handles an interrupt signal
  8756.  
  8757.  spawnl                            Executes child process with argument
  8758.                                    list
  8759.  
  8760.  spawnle                           Executes child process with argument
  8761.                                    list and given environment
  8762.  
  8763.  spawnlp                           Executes child process using PATH
  8764.                                    variable and argument list
  8765.  
  8766.  spawnlpe                          Executes child process using PATH
  8767.                                    variable, given environment, and
  8768.                                    argument list
  8769.  
  8770.  spawnv                            Executes child process with argument
  8771.                                    array
  8772.  
  8773.  spawnve                           Executes child process with argument
  8774.                                    array and given environment
  8775.  
  8776.  spawnvp                           Executes child process using PATH
  8777.                                    variable and argument array
  8778.  
  8779.  spawnvpe                          Executes child process using PATH
  8780.                                    variable, given environment, and
  8781.                                    argument array
  8782.  
  8783.  system                            Executes an operating-system command
  8784.  
  8785.  wait                              Suspends the calling process until any
  8786.                                    of the caller's immediate child
  8787.                                    processes terminate (OS/2 only)
  8788.  
  8789.  
  8790.  Searching and Sorting
  8791.  
  8792.  Search and sort routines provide binary-search, linear-search, and
  8793.  quick-sort capabilities.
  8794.  
  8795.  Routine                           Use
  8796.  ────────────────────────────────────────────────────────────────────────────
  8797.  bsearch                           Performs binary search
  8798.  
  8799.  lfind                             Performs linear search for given value
  8800.  
  8801.  lsearch                           Performs linear search for given value,
  8802.                                    which is added to array if not found
  8803.  
  8804.  qsort                             Performs quick sort
  8805.  
  8806.  
  8807.  String Manipulation
  8808.  
  8809.  The string functions allow you to compare strings, copy them, search for
  8810.  strings and characters, and perform various other operations.
  8811.  
  8812.  Routine                           Use
  8813.  ────────────────────────────────────────────────────────────────────────────
  8814.  strcat, _fstrcat                  Appends one string to another
  8815.  
  8816.  strchr, _fstrchr                  Finds first occurrence of a given
  8817.                                    character in string
  8818.  
  8819.  strcmp, _fstrcmp                  Compares two strings
  8820.  
  8821.  strcpy, _fstrcpy                  Copies one string to another
  8822.  
  8823.  strcspn, _fstrcspn                Finds first occurrence of a character
  8824.                                    from given character set in string
  8825.  
  8826.  strdup, _fstrdup, _nstrdup        Duplicates a string
  8827.  
  8828.  strerror                          Maps an error number to a message
  8829.  
  8830.  _strerror                         Maps a user-defined error message to a
  8831.                                    string
  8832.  
  8833.  stricmp, _fstricmp                Compares two strings without regard to
  8834.                                    case
  8835.  
  8836.  strlen, _fstrlen                  Finds length of string
  8837.  
  8838.  strlwr, _fstrlwr                  Converts string to lowercase
  8839.  
  8840.  strncat, _fstrncat                Appends characters of string
  8841.  
  8842.  strncmp, _fstrncmp                Compares characters of two strings
  8843.  
  8844.  strncpy, _fstrncpy                Copies characters of one string to
  8845.                                    another
  8846.  
  8847.  strnicmp, _fstrnicmp              Compares characters of two strings
  8848.                                    without regard to case
  8849.  
  8850.  strnset, _fstrnset                Sets characters of string to given
  8851.                                    character
  8852.  
  8853.  strpbrk, _fstrpbrk                Finds first occurrence of character from
  8854.                                    one string in another
  8855.  
  8856.  strrchr, _fstrrchr                Finds last occurrence of given character
  8857.                                    in string
  8858.  
  8859.  strrev, _fstrrev                  Reverses string
  8860.  
  8861.  strset, _fstrset                  Sets all characters of string to given
  8862.                                    character
  8863.  
  8864.  strspn, _fstrspn                  Finds first substring from given
  8865.                                    character set in string
  8866.  
  8867.  strstr, _fstrstr                  Finds first occurrence of given string
  8868.                                    in another string
  8869.  
  8870.  strtok, _fstrtok                  Finds next token in string
  8871.  
  8872.  strupr, _fstrupr                  Converts string to uppercase
  8873.  
  8874.  
  8875.  System Calls
  8876.  
  8877.  The following routines give access to IBM-PC BIOS (Basic Input/Output
  8878.  System) interrupts and DOS system calls.
  8879.  
  8880.  
  8881.  BIOS Interface
  8882.  
  8883.  Routine                           Use
  8884.  ────────────────────────────────────────────────────────────────────────────
  8885.  _bios_disk                        Issues service requests for both hard
  8886.                                    and floppy disks, using INT 0x13
  8887.  
  8888.  _bios_equiplist                   Performs an equipment check, using INT
  8889.                                    0x11
  8890.  
  8891.  _bios_keybrd                      Provides access to keyboard services,
  8892.                                    using
  8893.                                    INT 0x16
  8894.  
  8895.  _bios_memsize                     Obtains information about available
  8896.                                    memory, using INT 0x12
  8897.  
  8898.  _bios_printer                     Performs printer output services, using
  8899.                                    INT 0x17
  8900.  
  8901.  _bios_serialcom                   Performs serial communications tasks,
  8902.                                    using
  8903.                                    INT 0x14
  8904.  
  8905.  _bios_timeofday                   Provides access to system clock, using
  8906.                                    INT 0x1A
  8907.  
  8908.  
  8909.  DOS Interface
  8910.  
  8911.  Routine                           Use
  8912.  ────────────────────────────────────────────────────────────────────────────
  8913.  bdos                              Invokes DOS system call; uses only DX
  8914.                                    and AL registers
  8915.  
  8916.  _chain_intr                       Chains one interrupt handler to another
  8917.  
  8918.  _disable                          Disables interrupts
  8919.  
  8920.  _dos_allocmem                     Allocates a block of memory, using DOS
  8921.                                    system call 0x48
  8922.  
  8923.  _dos_close                        Closes a file, using DOS system call
  8924.                                    0x3E
  8925.  
  8926.  _dos_creat                        Creates a new file and erases any
  8927.                                    existing file having the same name,
  8928.                                    using DOS system call 0x3C
  8929.  
  8930.  _dos_creatnew                     Creates a new file and returns an error
  8931.                                    if a file having the same name exists,
  8932.                                    using DOS system call 0x5B
  8933.  
  8934.  _dos_findfirst                    Finds first occurrence of a given file,
  8935.                                    using DOS system call 0x4E
  8936.  
  8937.  _dos_findnext                     Finds subsequent occurrences of a given
  8938.                                    file, using DOS system call 0x4F
  8939.  
  8940.  _dos_freemem                      Frees a block of memory, using DOS
  8941.                                    system call 0x49
  8942.  
  8943.  _dos_getdate                      Gets the system date, using DOS system
  8944.                                    call 0x2A
  8945.  
  8946.  _dos_getdiskfree                  Gets information on a disk volume, using
  8947.                                    DOS system call 0x36
  8948.  
  8949.  _dos_getdrive                     Gets the current default drive, using
  8950.                                    DOS system call 0x19
  8951.  
  8952.  _dos_getfileattr                  Gets current attributes of a file or
  8953.                                    directory, using DOS system call 0x43
  8954.  
  8955.  _dos_getftime                     Gets the date and time a file was last
  8956.                                    written, using DOS system call 0x57
  8957.  
  8958.  _dos_gettime                      Gets the current system time, using DOS
  8959.                                    system call 0x2C
  8960.  
  8961.  _dos_getvect                      Gets the current value of a specified
  8962.                                    interrupt vector, using DOS system call
  8963.                                    0x35
  8964.  
  8965.  _dos_keep                         Installs terminate-and-stay-resident
  8966.                                    (TSR) programs using DOS system call
  8967.                                    0x31
  8968.  
  8969.  _dos_open                         Opens an existing file, using DOS system
  8970.                                    call 0x3D
  8971.  
  8972.  _dos_read                         Reads a file, using DOS system call 0x3F
  8973.  
  8974.  
  8975.  _dos_setblock                     Changes the size of a previously
  8976.                                    allocated block, using DOS system call
  8977.                                    0x4A
  8978.  
  8979.  _dos_setdate                      Sets the current system date, using DOS
  8980.                                    system call 0x2B
  8981.  
  8982.  _dos_setdrive                     Sets the default disk drive, using DOS
  8983.                                    system call 0x0E
  8984.  
  8985.  _dos_setfileattr                  Sets the current attributes of a file,
  8986.                                    using DOS system call 0x43
  8987.  
  8988.  _dos_setftime                     Sets the date and time that the
  8989.                                    specified file was last written, using
  8990.                                    DOS system call 0x57
  8991.  
  8992.  _dos_settime                      Sets the system time, using DOS system
  8993.                                    call 0x2D
  8994.  
  8995.  _dos_setvect                      Sets a new value for the specified
  8996.                                    interrupt vector, using DOS system call
  8997.                                    0x25
  8998.  
  8999.  _dos_write                        Sends output to a file, using DOS system
  9000.                                    call 0x40
  9001.  
  9002.  dosexterr                         Obtains in-depth error information from
  9003.                                    DOS system call 0x59
  9004.  
  9005.  _enable                           Enables interrupts
  9006.  
  9007.  FP_OFF                            Returns offset portion of a far pointer
  9008.                                    (OS/2 and DOS)
  9009.  
  9010.  FP_SEG                            Returns segment portion of a far pointer
  9011.                                    (OS/2 and DOS)
  9012.  
  9013.  _harderr                          Establishes a hardware error handler
  9014.  
  9015.  _hardresume                       Returns to DOS after a hardware error
  9016.  
  9017.  _hardretn                         Returns to the application after a
  9018.                                    hardware error
  9019.  
  9020.  int86                             Invokes DOS interrupts
  9021.  
  9022.  int86x                            Invokes DOS interrupts with segment
  9023.                                    register values
  9024.  
  9025.  intdos                            Invokes DOS system call using registers
  9026.                                    other than DX and AL
  9027.  
  9028.  intdosx                           Invokes DOS system call using registers
  9029.                                    other than DX and AL with segment
  9030.                                    register values
  9031.  
  9032.  segread                           Returns current values of segment
  9033.                                    registers (OS/2 and DOS)
  9034.  
  9035.  
  9036.  Time
  9037.  
  9038.  The time functions allow you to obtain the current time, then convert and
  9039.  store it. The current time is always taken from the system time.
  9040.  
  9041.  Routine                           Use
  9042.  ────────────────────────────────────────────────────────────────────────────
  9043.  asctime                           Converts time from type struct tm to
  9044.                                    character string
  9045.  
  9046.  clock                             Returns the elapsed CPU time for a
  9047.                                    process
  9048.  
  9049.  ctime                             Converts time from long integer to
  9050.                                    character string
  9051.  
  9052.  difftime                          Computes the difference between two
  9053.                                    times
  9054.  
  9055.  ftime                             Puts current system time in variable of
  9056.                                    type struct tm
  9057.  
  9058.  gmtime                            Converts time from integer to struct tm
  9059.  
  9060.  localtime                         Converts time from integer to struct tm
  9061.                                    with local correction
  9062.  
  9063.  mktime                            Converts time to a calendar value
  9064.  
  9065.  _strdate                          Returns the current system date as a
  9066.                                    string
  9067.  
  9068.  strftime                          Formats a date and time string
  9069.  
  9070.  _strtime                          Returns the current system time as a
  9071.                                    string
  9072.  
  9073.  time                              Gets current system time as long integer
  9074.  
  9075.  tzset                             Sets external time variables from
  9076.                                    environment time variable
  9077.  
  9078.  utime                             Sets file-modification time
  9079.  
  9080.  
  9081.  Variable-Length Argument Lists
  9082.  
  9083.  The va_arg, va_end, and va_start routines are macros that provide a portable
  9084.  way to access the arguments to a function when the function takes a variable
  9085.  number of arguments.
  9086.  
  9087.  Routine                           Use
  9088.  ────────────────────────────────────────────────────────────────────────────
  9089.  va_arg                            Retrieves argument from list
  9090.  
  9091.  va_end                            Resets pointer
  9092.  
  9093.  va_start                          Sets pointer to beginning of argument
  9094.                                    list
  9095.  
  9096.  
  9097.  
  9098.  
  9099.  
  9100.  abort
  9101.  ────────────────────────────────────────────────────────────────────────────
  9102.  
  9103.    void abort( void );
  9104.  
  9105.  Include                           PROCESS.H or STDLIB.H
  9106.  
  9107.  Returns                           No return value
  9108.  
  9109.  Aborts the current process.
  9110.  
  9111.   ANSI   DOS   OS/2   UNIX   XENIX
  9112.  
  9113.  
  9114.  
  9115.  abs
  9116.  ────────────────────────────────────────────────────────────────────────────
  9117.  
  9118.    int abs( int n );
  9119.  
  9120.  Include                           STDLIB.H or MATH.H
  9121.  
  9122.  n                                 Value whose absolute value is sought
  9123.  
  9124.  Returns                           The absolute value of n
  9125.  
  9126.  Calculates the absolute value of its argument.
  9127.  
  9128.   ANSI   DOS   OS/2   UNIX   XENIX
  9129.  
  9130.  
  9131.  
  9132.  access
  9133.  ────────────────────────────────────────────────────────────────────────────
  9134.  
  9135.    int access( char *pathname, int mode );
  9136.  
  9137.  Include                           IO.H, ERRNO.H
  9138.  
  9139.  pathname                          File or directory path name
  9140.  
  9141.  mode                              00 (exist), 02 (write), 04 (read), 06
  9142.                                    (read/write)
  9143.  
  9144.  Returns                           0 if the file has the given access mode
  9145.                                    or if the directory exists; -1 if the
  9146.                                    directory or file does not exist or does
  9147.                                    not have the given mode
  9148.  
  9149.  errno                             EACCESS, ENOENT
  9150.  
  9151.  Determines whether a specified file or directory exists, and (in the case of
  9152.  a file) whether it can be accessed in the specified mode.
  9153.  
  9154.   ANSI   DOS   OS/2   UNIX   XENIX
  9155.  
  9156.  
  9157.  
  9158.  acos
  9159.  ────────────────────────────────────────────────────────────────────────────
  9160.  
  9161.    double acos( double x );
  9162.  
  9163.  Include                           MATH.H, ERRNO.H
  9164.  
  9165.  x                                 Value whose arccosine is sought
  9166.  
  9167.  Returns                           0 if x is less than -1 or greater than 1
  9168.  
  9169.  errno                             EDOM
  9170.  
  9171.  Returns the arccosine of x in the range 0 to pi radians.
  9172.  
  9173.   ANSI   DOS   OS/2   UNIX   XENIX
  9174.  
  9175.  
  9176.  
  9177.  acosl
  9178.  ────────────────────────────────────────────────────────────────────────────
  9179.  
  9180.    long double acosl( long double x );
  9181.  
  9182.  Include                           MATH.H, ERRNO.H
  9183.  
  9184.  x                                 Value whose arccosine is sought
  9185.  
  9186.  Returns                           0 if x is less than -1 or greater than 1
  9187.  
  9188.  errno                             EDOM
  9189.  
  9190.  Returns the arccosine of x in the range 0 to pi radians. Long
  9191.  double-precision floatingpoint version of acos.
  9192.  
  9193.   ANSI   DOS   OS/2   UNIX   XENIX
  9194.  
  9195.  
  9196.  
  9197.  alloca
  9198.  ────────────────────────────────────────────────────────────────────────────
  9199.  
  9200.    void *alloca( size_t size );
  9201.  
  9202.  Include                           MALLOC.H
  9203.  
  9204.  size                              Bytes to be allocated from the stack
  9205.  
  9206.  Returns                           A void pointer to the allocated space;
  9207.                                    NULL if the space cannot be
  9208.                                    allocated
  9209.  
  9210.  Allocates size bytes from the program's stack.
  9211.  
  9212.   ANSI   DOS   OS/2   UNIX   XENIX
  9213.  
  9214.  
  9215.  
  9216.  _arc
  9217.  ────────────────────────────────────────────────────────────────────────────
  9218.  
  9219.    short _far _arc( short x1, short y1, short x2, short y2, short x3, short
  9220.    y3,
  9221.    short x4, short y4 );
  9222.  
  9223.  Include                           GRAPH.H
  9224.  
  9225.  x1, y1                            Upper left corner of bounding rectangle
  9226.  
  9227.  x2, y2                            Lower right corner of bounding rectangle
  9228.  
  9229.  x3, y3                            Start vector
  9230.  
  9231.  x4, y4                            End vector
  9232.  
  9233.  Returns                           A nonzero value if anything is drawn; 0
  9234.                                    if nothing is drawn
  9235.  
  9236.  Draws an elliptical arc using the view coordinate system.
  9237.  
  9238.   ANSI   DOS   OS/2   UNIX   XENIX
  9239.  
  9240.  
  9241.  
  9242.  _arc_w
  9243.  ────────────────────────────────────────────────────────────────────────────
  9244.  
  9245.    short _far _arc_w( double x1, double y1, double x2, double y2, double x3,
  9246.    double y3,
  9247.    double x4, double y4 );
  9248.  
  9249.  Include                           GRAPH.H
  9250.  
  9251.  x1, y1                            Upper left corner of bounding rectangle
  9252.  
  9253.  x2, y2                            Lower right corner of bounding rectangle
  9254.  
  9255.  x3, y3                            Second point of start vector (center of
  9256.                                    bounding rectangle is first point)
  9257.  
  9258.  x4, y4                            Second point of end vector (center of
  9259.                                    bounding rectangle is first point)
  9260.  
  9261.  Returns                           A nonzero value if anything is drawn; 0
  9262.                                    if nothing is drawn
  9263.  
  9264.  Draws an elliptical arc using the window coordinate system.
  9265.  
  9266.   ANSI   DOS   OS/2   UNIX   XENIX
  9267.  
  9268.  
  9269.  
  9270.  _arc_wxy
  9271.  ────────────────────────────────────────────────────────────────────────────
  9272.  
  9273.    short _far _arc_wxy( struct _wxycoord _far *pwxy1, struct _wxycoord _far
  9274.    *pwxy2, struct _wxycoord _far *pwxy3, struct _wxycoord _far *pwxy4 );
  9275.  
  9276.  Include                           GRAPH.H
  9277.  
  9278.  pwxy1                             Upper left corner of bounding rectangle
  9279.  
  9280.  pwxy2                             Lower right corner of bounding rectangle
  9281.  
  9282.  pwxy3                             Start vector
  9283.  
  9284.  pwxy4                             End vector
  9285.  
  9286.  Returns                           A nonzero value if anything is drawn; 0
  9287.                                    if nothing is drawn
  9288.  
  9289.  Draws an elliptical arc using the window coordinate system.
  9290.  
  9291.   ANSI   DOS   OS/2       UNIX   XENIX
  9292.  
  9293.  
  9294.  
  9295.  asctime
  9296.  ────────────────────────────────────────────────────────────────────────────
  9297.  
  9298.    char *asctime( const struct tm *timeptr );
  9299.  
  9300.  Include                           TIME.H
  9301.  
  9302.  timeptr                           Time/date structure defined in TIME.H
  9303.  
  9304.  Returns                           A pointer to the character string result
  9305.  
  9306.  Converts a value stored as a tm time structure to a character string.
  9307.  
  9308.   ANSI   DOS   OS/2   UNIX   XENIX
  9309.  
  9310.  
  9311.  
  9312.  asin
  9313.  ────────────────────────────────────────────────────────────────────────────
  9314.  
  9315.    double asin( double x );
  9316.  
  9317.  Include                           MATH.H, ERRNO.H
  9318.  
  9319.  x                                 Value whose arcsine is sought
  9320.  
  9321.  Returns                           0 if x is less than -1 or greater than 1
  9322.  
  9323.  errno                             EDOM
  9324.  
  9325.  Calculates the arcsine of a value in the range -pi/2 to pi/2 radians.
  9326.  
  9327.   ANSI   DOS   OS/2   UNIX   XENIX
  9328.  
  9329.  
  9330.  
  9331.  asinl
  9332.  ────────────────────────────────────────────────────────────────────────────
  9333.  
  9334.    long double asinl( long double x );
  9335.  
  9336.  Include                           MATH.H, ERRNO.H
  9337.  
  9338.  x                                 Value whose arcsine is sought
  9339.  
  9340.  Returns                           0 if x is less than -1 or greater than 1
  9341.  
  9342.  errno                             EDOM
  9343.  
  9344.  Calculates the arcsine of a value in the range -pi/2 to pi/2 radians. Long
  9345.  double-precision floating-point version of asin.
  9346.  
  9347.   ANSI   DOS   OS/2   UNIX   XENIX
  9348.  
  9349.  
  9350.  
  9351.  assert
  9352.  ────────────────────────────────────────────────────────────────────────────
  9353.  
  9354.    void assert( int expression );
  9355.  
  9356.  Include                           ASSERT.H, STDIO.H
  9357.  
  9358.  expression                        A logical expression
  9359.  
  9360.  Returns                           No return value
  9361.  
  9362.  Prints a diagnostic message and calls the abort routine if a logical
  9363.  expression is false (0). Activated only if NDEBUG is defined at compile
  9364.  time.
  9365.  
  9366.   ANSI   DOS   OS/2   UNIX   XENIX
  9367.  
  9368.  
  9369.  
  9370.  atan
  9371.  ────────────────────────────────────────────────────────────────────────────
  9372.  
  9373.    double atan( double x );
  9374.  
  9375.  Include                           MATH.H, ERRNO.H
  9376.  
  9377.  x                                 Value whose arctangent is sought
  9378.  
  9379.  Returns                           The arctangent result; 0 if x is 0
  9380.  
  9381.  errno                             EDOM
  9382.  
  9383.  Calculates the arctangent of x in the range -pi/2 to pi/2.
  9384.  
  9385.   ANSI   DOS   OS/2   UNIX   XENIX
  9386.  
  9387.  
  9388.  
  9389.  atanl
  9390.  ────────────────────────────────────────────────────────────────────────────
  9391.  
  9392.    long double atanl( long double x );
  9393.  
  9394.  Include                           MATH.H, ERRNO.H
  9395.  
  9396.  x                                 Value whose arctangent is sought
  9397.  
  9398.  Returns                           The arctangent result; 0 if x is 0
  9399.  
  9400.  errno                             EDOM
  9401.  
  9402.  Calculates the arctangent of x in the range -pi/2 to pi/2. Long
  9403.  double-precision floating-point version of atan.
  9404.  
  9405.   ANSI   DOS   OS/2   UNIX   XENIX
  9406.  
  9407.  
  9408.  
  9409.  atan2
  9410.  ────────────────────────────────────────────────────────────────────────────
  9411.  
  9412.    double atan2( double y, double x );
  9413.  
  9414.  Include                           MATH.H, ERRNO.H
  9415.  
  9416.  y/x                               Value whose arctangent is sought
  9417.  
  9418.  Returns                           The arctangent result; 0 if x or y is 0
  9419.  
  9420.  errno                             EDOM
  9421.  
  9422.  Calculates the arctangent of y/x in the range -pi to pi.
  9423.  
  9424.   ANSI   DOS   OS/2   UNIX   XENIX
  9425.  
  9426.  
  9427.  
  9428.  atan2l
  9429.  ────────────────────────────────────────────────────────────────────────────
  9430.  
  9431.    long double atan2l( long double y, long double x );
  9432.  
  9433.  Include                           MATH.H, ERRNO.H
  9434.  
  9435.  y/x                               Value whose arctangent is sought
  9436.  
  9437.  Returns                           The arctangent result; 0 if x or y is 0
  9438.  
  9439.  errno                             EDOM
  9440.  
  9441.  Calculates the arctangent of y/x in the range -pi to pi. Long
  9442.  double-precision floating-point version of atan2.
  9443.  
  9444.   ANSI   DOS   OS/2   UNIX   XENIX
  9445.  
  9446.  
  9447.  
  9448.  atexit
  9449.  ────────────────────────────────────────────────────────────────────────────
  9450.  
  9451.    int atexit( void( *func )( void ) );
  9452.  
  9453.  Include                           STDLIB.H
  9454.  
  9455.  func                              Function to call on exit
  9456.  
  9457.  Returns                           0 if successful; a nonzero value if not
  9458.  
  9459.  Calls the specified function at exit. Successive calls create a register of
  9460.  up to 32 functions to be called (last in, first out).
  9461.  
  9462.   ANSI   DOS   OS/2   UNIX   XENIX
  9463.  
  9464.  
  9465.  
  9466.  atof
  9467.  ────────────────────────────────────────────────────────────────────────────
  9468.  
  9469.    double atof( const char *string );
  9470.  
  9471.  Include                           MATH.H or STDLIB.H
  9472.  
  9473.  string                            String to be converted
  9474.  
  9475.  Returns                           The converted string; 0 if the string
  9476.                                    cannot be converted
  9477.  
  9478.  Converts a character string to a double-precision floating-point value.
  9479.  
  9480.   ANSI   DOS   OS/2   UNIX   XENIX
  9481.  
  9482.  
  9483.  
  9484.  atoi
  9485.  ────────────────────────────────────────────────────────────────────────────
  9486.  
  9487.    int atoi( const char *string );
  9488.  
  9489.  Include                           STDLIB.H
  9490.  
  9491.  string                            String to be converted
  9492.  
  9493.  Returns                           The converted string; 0 if the string
  9494.                                    cannot be converted
  9495.  
  9496.  Converts a character string to an integer value.
  9497.  
  9498.   ANSI   DOS   OS/2   UNIX   XENIX
  9499.  
  9500.  
  9501.  
  9502.  atol
  9503.  ────────────────────────────────────────────────────────────────────────────
  9504.  
  9505.    long atol( const char *string );
  9506.  
  9507.  Include                           STDLIB.H
  9508.  
  9509.  string                            String to be converted
  9510.  
  9511.  Returns                           The converted string; 0 if the string
  9512.                                    cannot be converted
  9513.  
  9514.  Converts a character string to a long integer value.
  9515.  
  9516.   ANSI   DOS   OS/2   UNIX   XENIX
  9517.  
  9518.  
  9519.  
  9520.  _atold
  9521.  ────────────────────────────────────────────────────────────────────────────
  9522.  
  9523.    long double _atold( const char *string );
  9524.  
  9525.  Include                           MATH.H or STDLIB.H
  9526.  
  9527.  string                            String to be converted
  9528.  
  9529.  Returns                           The converted string; 0 if the string
  9530.                                    cannot be converted
  9531.  
  9532.  Converts a character string to a long double-precision floating-point value.
  9533.  
  9534.  
  9535.   ANSI   DOS   OS/2   UNIX   XENIX
  9536.  
  9537.  
  9538.  
  9539.  _bcalloc
  9540.  ────────────────────────────────────────────────────────────────────────────
  9541.  
  9542.    void _based( void ) *_bcalloc( _segment seg, size_t num, size_t size );
  9543.  
  9544.  Include                           MALLOC.H
  9545.  
  9546.  seg                               Based-heap segment selector
  9547.  
  9548.  num                               Number of elements
  9549.  
  9550.  size                              Length in bytes of each element
  9551.  
  9552.  Returns                           A based pointer to the allocated space;
  9553.                                    _NULLOFF if there is insufficient memory
  9554.                                    available, if num or size is 0, or if
  9555.                                    the specified segment has not been
  9556.                                    initialized as part of the based heap
  9557.  
  9558.  Allocates array storage on the specified based heap.
  9559.  
  9560.   ANSI   DOS   OS/2   UNIX   XENIX
  9561.  
  9562.  
  9563.  
  9564.  bdos
  9565.  ────────────────────────────────────────────────────────────────────────────
  9566.  
  9567.    int bdos( int dosfunc, unsigned int dosdx, unsigned int dosal );
  9568.  
  9569.  Include                           DOS.H
  9570.  
  9571.  dosfunc                           Function number
  9572.  
  9573.  dosdx                             DX register value
  9574.  
  9575.  dosal                             AL register value
  9576.  
  9577.  Returns                           The value of the AX register after the
  9578.                                    system call has completed
  9579.  
  9580.  Invokes the DOS system call specified by a function number.
  9581.  
  9582.   ANSI   DOS   OS/2   UNIX   XENIX
  9583.  
  9584.  
  9585.  
  9586.  _beginthread
  9587.  ────────────────────────────────────────────────────────────────────────────
  9588.  
  9589.    int _far _beginthread( void( _far *start_address )( void _far * ),
  9590.    void _far *stack_bottom, unsigned stack_size, void _far *arglist );
  9591.  
  9592.  Include                           PROCESS.H, STDDEF.H, ERRNO.H
  9593.  
  9594.  start_address                     Address where execution begins
  9595.  
  9596.  stack_bottom                      Address of the thread stack or NULL
  9597.  
  9598.  stack_size                        Stack space to reserve
  9599.  
  9600.  arglist                           Address of data item to pass to new
  9601.                                    thread
  9602.  
  9603.  Returns                           The thread identification number of the
  9604.                                    new thread if successful;
  9605.                                    -1 to indicate an error if not
  9606.  
  9607.  errno                             EINVAL, EAGAIN
  9608.  
  9609.  Creates a thread that begins execution at start_address.
  9610.  
  9611.   ANSI   DOS   OS/2   UNIX   XENIX
  9612.  
  9613.  
  9614.  
  9615.  _bexpand
  9616.  ────────────────────────────────────────────────────────────────────────────
  9617.  
  9618.    void _based( void ) *_bexpand( _segment seg, void _based( void )
  9619.    *memblock,
  9620.    size_t size );
  9621.  
  9622.  Include                           MALLOC.H
  9623.  
  9624.  seg                               Based-heap segment selector
  9625.  
  9626.  memblock                          Pointer to previously allocated memory
  9627.  
  9628.  size                              New size in bytes
  9629.  
  9630.  Returns                           A based pointer to the resized memory
  9631.                                    block if successful;
  9632.                                    _NULLOFF if not
  9633.  
  9634.  Changes the size of a block in the based heap.
  9635.  
  9636.   ANSI   DOS   OS/2   UNIX   XENIX
  9637.  
  9638.  
  9639.  
  9640.  _bfree
  9641.  ────────────────────────────────────────────────────────────────────────────
  9642.  
  9643.    void _bfree( _segment seg, void _based( void ) *memblock );
  9644.  
  9645.  Include                           MALLOC.H
  9646.  
  9647.  seg                               Segment selected
  9648.  
  9649.  memblock                          Allocated memory block
  9650.  
  9651.  Returns                           No return value
  9652.  
  9653.  Frees a memory block in the based heap (previously allocated by a call to
  9654.  _bmalloc or _brealloc).
  9655.  
  9656.   ANSI   DOS   OS/2   UNIX   XENIX
  9657.  
  9658.  
  9659.  
  9660.  _bfreeseg
  9661.  ────────────────────────────────────────────────────────────────────────────
  9662.  
  9663.    int _bfreeseg( _segment seg );
  9664.  
  9665.  Include                           MALLOC.H
  9666.  
  9667.  seg                               Based-heap segment selector
  9668.  
  9669.  Returns                           0 if successful; -1 in the case of an
  9670.                                    error
  9671.  
  9672.  Frees a specified based-heap segment.
  9673.  
  9674.   ANSI   DOS   OS/2   UNIX   XENIX
  9675.  
  9676.  
  9677.  
  9678.  _bheapadd
  9679.  ────────────────────────────────────────────────────────────────────────────
  9680.  
  9681.    int _bheapadd( _segment seg, void _based( void ) *memblock, size_t size );
  9682.  
  9683.  Include                           MALLOC.H
  9684.  
  9685.  seg                               Based-heap segment selector
  9686.  
  9687.  memblock                          Pointer to based memory
  9688.  
  9689.  size                              Size in bytes of memory to add
  9690.  
  9691.  Returns                           A segment selector if successful; -1 if
  9692.                                    not
  9693.  
  9694.  Adds an unused piece of memory to the specified based heap.
  9695.  
  9696.   ANSI   DOS   OS/2   UNIX   XENIX
  9697.  
  9698.  
  9699.  
  9700.  _bheapchk
  9701.  ────────────────────────────────────────────────────────────────────────────
  9702.  
  9703.    int _bheapchk( _segment seg );
  9704.  
  9705.  Include                           MALLOC.H
  9706.  
  9707.  seg                               Based-heap segment to check or _NULLSEG
  9708.                                    to check all based-heap segments
  9709.  
  9710.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  9711.                                    _HEAPBADNODE
  9712.  
  9713.  Checks for minimal consistency in the based heap specified by the selector
  9714.  value seg.
  9715.  
  9716.   ANSI   DOS   OS/2   UNIX   XENIX
  9717.  
  9718.  
  9719.  
  9720.  _bheapmin
  9721.  ────────────────────────────────────────────────────────────────────────────
  9722.  
  9723.    int _bheapmin( _segment seg );
  9724.  
  9725.  Include                           MALLOC.H
  9726.  
  9727.  seg                               Based-heap segment to minimize, or
  9728.                                    _NULLSEG for all based-heap segments
  9729.  
  9730.  Returns                           0 if successful; -1 if not
  9731.  
  9732.  Releases unused memory in the based heap, minimizing the heap.
  9733.  
  9734.   ANSI   DOS   OS/2   UNIX   XENIX
  9735.  
  9736.  
  9737.  
  9738.  _bheapseg
  9739.  ────────────────────────────────────────────────────────────────────────────
  9740.  
  9741.    _segment _bheapseg( size_t size );
  9742.  
  9743.  Include                           MALLOC.H
  9744.  
  9745.  size                              Segment size to allocate
  9746.  
  9747.  Returns                           The selector for the newly allocated
  9748.                                    segment if successful; -1 if not
  9749.  
  9750.  Allocates a based-heap segment.
  9751.  
  9752.   ANSI   DOS   OS/2   UNIX   XENIX
  9753.  
  9754.  
  9755.  
  9756.  _bheapset
  9757.  ────────────────────────────────────────────────────────────────────────────
  9758.  
  9759.    int _bheapset( _segment seg, unsigned int fill );
  9760.  
  9761.  Include                           MALLOC.H
  9762.  
  9763.  seg                               Based-heap segment selector or _NULLSEG
  9764.                                    for all based-heap
  9765.                                    segments
  9766.  
  9767.  fill                              Fill character
  9768.  
  9769.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  9770.                                    _HEAPBADNODE
  9771.  
  9772.  Checks for minimal consistency in the based-heap segment specified by the
  9773.  selector value seg, and then sets the heap's free entries with the fill
  9774.  value.
  9775.  
  9776.   ANSI   DOS   OS/2   UNIX   XENIX
  9777.  
  9778.  
  9779.  
  9780.  _bheapwalk
  9781.  ────────────────────────────────────────────────────────────────────────────
  9782.  
  9783.    int _bheapwalk( _segment seg, _HEAPINFO *entryinfo );
  9784.  
  9785.  Include                           MALLOC.H
  9786.  
  9787.  seg                               Based-heap selector or _NULLSEG for all
  9788.                                    based-heap segments
  9789.  
  9790.  entryinfo                         Structure to contain information about
  9791.                                    the next heap entry, defined in MALLOC.H
  9792.  
  9793.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADPTR,
  9794.                                    _HEAPBADBEGIN, _HEAPBADNODE, _HEAPEND
  9795.  
  9796.  Walks through the based-heap segment specified by the selector seg (or all
  9797.  based-heap segments if seg is equal to _NULLSEG), one entry per call,
  9798.  returning a pointer to a _HEAPINFO structure that contains information about
  9799.  the next based-heap entry.
  9800.  
  9801.   ANSI   DOS   OS/2   UNIX   XENIX
  9802.  
  9803.  
  9804.  
  9805.  _bios_disk
  9806.  ────────────────────────────────────────────────────────────────────────────
  9807.  
  9808.    unsigned _bios_disk( unsigned service, struct diskinfo_t *diskinfo );
  9809.  
  9810.  Include                           BIOS.H
  9811.  
  9812.  service                           _DISK_RESET, _DISK_STATUS, _DISK_READ,
  9813.                                    _DISK_WRITE, _DISK_VERIFY, _DISK_FORMAT
  9814.  
  9815.  diskinfo                          Disk parameters structure defined in
  9816.                                    BIOS.H
  9817.  
  9818.  Returns                           The value stored in the AX register upon
  9819.                                    return from the BIOS
  9820.                                    interrupt
  9821.  
  9822.  Calls BIOS disk-access services (INT 0x13).
  9823.  
  9824.   ANSI   DOS   OS/2   UNIX   XENIX
  9825.  
  9826.  
  9827.  
  9828.  _bios_equiplist
  9829.  ────────────────────────────────────────────────────────────────────────────
  9830.  
  9831.    unsigned _bios_equiplist( void );
  9832.  
  9833.  Include                           BIOS.H
  9834.  
  9835.  Returns                           A set of bits indicating what is
  9836.                                    installed
  9837.  
  9838.  Calls INT 0x11 to determine what hardware and peripherals are currently
  9839.  installed on the machine.
  9840.  
  9841.   ANSI   DOS   OS/2   UNIX   XENIX
  9842.  
  9843.  
  9844.  
  9845.  _bios_keybrd
  9846.  ────────────────────────────────────────────────────────────────────────────
  9847.  
  9848.    unsigned _bios_keybrd( unsigned service );
  9849.  
  9850.  Include                           BIOS.H
  9851.  
  9852.  service                           _KEYBRD_READ, _N_KEYBRD_READ,
  9853.                                    _KEYBRD_READY, _N_KEYBRD_READY,
  9854.                                    _KEYBRD_SHIFTSTATUS,
  9855.                                    _N_KEYBRD_SHIFTSTATUS
  9856.  
  9857.  Returns                           The value returned in the AX register
  9858.                                    upon return from the BIOS
  9859.                                    interrupt
  9860.  
  9861.  Calls BIOS keyboard services (INT 0x16).
  9862.  
  9863.   ANSI   DOS   OS/2   UNIX   XENIX
  9864.  
  9865.  
  9866.  
  9867.  _bios_memsize
  9868.  ────────────────────────────────────────────────────────────────────────────
  9869.  
  9870.    unsigned _bios_memsize( void );
  9871.  
  9872.  Include                           BIOS.H
  9873.  
  9874.  Returns                           The total amount of installed memory in
  9875.                                    1K blocks
  9876.  
  9877.  Calls BIOS memory-size service (INT 0x12) to determine the total amount of
  9878.  main memory installed.
  9879.  
  9880.   ANSI   DOS   OS/2   UNIX   XENIX
  9881.  
  9882.  
  9883.  
  9884.  _bios_printer
  9885.  ────────────────────────────────────────────────────────────────────────────
  9886.  
  9887.    unsigned _bios_printer( unsigned service, unsigned printer, unsigned data
  9888.    );
  9889.  
  9890.  Include                           BIOS.H
  9891.  
  9892.  service                           _PRINTER_WRITE, _PRINTER_INIT,
  9893.                                    _PRINTER_STATUS
  9894.  
  9895.  printer                           Target printer port
  9896.  
  9897.  data                              Output data
  9898.  
  9899.  Returns                           The value returned in the AX register
  9900.                                    upon return from the BIOS
  9901.                                    interrupt
  9902.  
  9903.  Calls BIOS printer services (INT 0x17) to perform printer tasks for parallel
  9904.  printers.
  9905.  
  9906.   ANSI   DOS   OS/2   UNIX   XENIX
  9907.  
  9908.  
  9909.  
  9910.  _bios_serialcom
  9911.  ────────────────────────────────────────────────────────────────────────────
  9912.  
  9913.    unsigned _bios_serialcom( unsigned service, unsigned serial_port, unsigned
  9914.    data );
  9915.  
  9916.  Include                           BIOS.H
  9917.  
  9918.  service                           _COM_INIT, _COM_RECEIVE, _COM_SEND,
  9919.                                    _COM_STATUS
  9920.  
  9921.  serial_port                       Serial port to use
  9922.  
  9923.  data                              _COM_CHR7, _COM_CHR8, _COM_STOP1,
  9924.                                    _COM_STOP2, _COM_NOPARITY,
  9925.                                    _COM_EVENPARITY,
  9926.                                    _COM_ODDPARITY, _COM_110, _COM_150,
  9927.                                    _COM_300, _COM_600, _COM_1200, _COM_2400,
  9928.                                    _COM_4800, _COM_9600
  9929.  
  9930.  Returns                           A 16-bit integer whose meaning varies
  9931.                                    depending on the service
  9932.                                    requested
  9933.  
  9934.  Calls BIOS communications services (INT 0x14) to provide serial
  9935.  communications.
  9936.  
  9937.   ANSI   DOS   OS/2   UNIX   XENIX
  9938.  
  9939.  
  9940.  
  9941.  _bios_timeofday
  9942.  ────────────────────────────────────────────────────────────────────────────
  9943.  
  9944.    unsigned _bios_timeofday( unsigned service, long *timeval );
  9945.  
  9946.  Include                           BIOS.H
  9947.  
  9948.  service                           _TIME_GETCLOCK, _TIME_SETCLOCK
  9949.  
  9950.  timeval                           Clock count
  9951.  
  9952.  Returns                           The value returned in the AX register
  9953.                                    upon return from the BIOS
  9954.                                    interrupt
  9955.  
  9956.  Calls BIOS time and date services (INT 0x1A) to get or set the current
  9957.  system clock count.
  9958.  
  9959.   ANSI   DOS   OS/2   UNIX   XENIX
  9960.  
  9961.  
  9962.  
  9963.  _bmalloc
  9964.  ────────────────────────────────────────────────────────────────────────────
  9965.  
  9966.    void _based( void ) *_bmalloc( _segment seg, size_t size );
  9967.  
  9968.  Include                           MALLOC.H
  9969.  
  9970.  seg                               Based-heap segment selector
  9971.  
  9972.  size                              Number of bytes to allocate
  9973.  
  9974.  Returns                           A void pointer to the allocated space;
  9975.                                    _NULLOFF if it fails
  9976.  
  9977.  Allocates a memory block of at least size bytes in the based-heap segment
  9978.  specified by the selector seg.
  9979.  
  9980.   ANSI   DOS   OS/2    UNIX   XENIX
  9981.  
  9982.  
  9983.  
  9984.  _bmsize
  9985.  ────────────────────────────────────────────────────────────────────────────
  9986.  
  9987.    size_t _bmsize( _segment seg, void _based( void ) *memblock );
  9988.  
  9989.  Include                           MALLOC.H
  9990.  
  9991.  seg                               Based-heap segment selector
  9992.  
  9993.  memblock                          Pointer to based-heap memory block
  9994.  
  9995.  Returns                           The size in bytes
  9996.  
  9997.  An unsigned integer representing the size in bytes of the based-heap memory
  9998.  block allocated by a call to _bcalloc, _bmalloc, or _brealloc.
  9999.  
  10000.   ANSI   DOS   OS/2   UNIX   XENIX
  10001.  
  10002.  
  10003.  
  10004.  _brealloc
  10005.  ────────────────────────────────────────────────────────────────────────────
  10006.  
  10007.    void _based( void ) *_brealloc( _segment seg, void _based( void )
  10008.    *memblock,
  10009.    size_t size );
  10010.  
  10011.  Include                           MALLOC.H
  10012.  
  10013.  seg                               Based-heap segment selector
  10014.  
  10015.  memblock                          Pointer to previously allocated memory
  10016.                                    block
  10017.  
  10018.  size                              New size in bytes
  10019.  
  10020.  Returns                           A void _based pointer to the reallocated
  10021.                                    memory block if successful; _NULLOFF if
  10022.                                    not
  10023.  
  10024.  Changes the size of a previously allocated based-heap memory block, possibly
  10025.  relocating it.
  10026.  
  10027.   ANSI   DOS   OS/2   UNIX   XENIX
  10028.  
  10029.  
  10030.  
  10031.  bsearch
  10032.  ────────────────────────────────────────────────────────────────────────────
  10033.  
  10034.    void *bsearch( const void *key, const void *base, size_t num, size_t
  10035.    width,
  10036.     int ( *compare )( const void *elem1, const void *elem2 ) );
  10037.  
  10038.  Include                           STDLIB.H, SEARCH.H
  10039.  
  10040.  key                               Pointer to object to search for
  10041.  
  10042.  base                              Pointer to base of search data
  10043.  
  10044.  num                               Number of elements
  10045.  
  10046.  width                             Width of elements
  10047.  
  10048.  compare                           Comparison function
  10049.  
  10050.  elem1                             Pointer to the key for the search
  10051.  
  10052.  elem2                             Pointer to the array element to be
  10053.                                    compared with the key
  10054.  
  10055.  Returns                           A pointer to the first occurrence of the
  10056.                                    object pointed to by key in the array
  10057.                                    that base points to; NULL if key is not
  10058.                                    found
  10059.  
  10060.  Performs a binary search of a sorted array. Note that key is a pointer to an
  10061.  object of size width.
  10062.  
  10063.   ANSI   DOS   OS/2   UNIX   XENIX
  10064.  
  10065.  
  10066.  
  10067.  cabs
  10068.  ────────────────────────────────────────────────────────────────────────────
  10069.  
  10070.    double cabs( struct complex z );
  10071.  
  10072.  Include                           MATH.H, ERRNO.H
  10073.  
  10074.  z                                 Complex number structure defined in
  10075.                                    MATH.H
  10076.  
  10077.  Returns                           HUGE_VAL on overflow
  10078.  
  10079.  errno                             ERANGE
  10080.  
  10081.  Calculates the absolute value of a complex number.
  10082.  
  10083.   ANSI   DOS   OS/2   UNIX   XENIX
  10084.  
  10085.  
  10086.  
  10087.  cabsl
  10088.  ────────────────────────────────────────────────────────────────────────────
  10089.  
  10090.    long double cabsl( struct _complexl z );
  10091.  
  10092.  Include                           MATH.H, ERRNO.H
  10093.  
  10094.  z                                 Long double-precision complex number
  10095.                                    structure defined in MATH.H
  10096.  
  10097.  Returns                           The absolute value if successful;
  10098.                                    _LHUGE_VAL on overflow
  10099.  
  10100.  errno                             ERANGE
  10101.  
  10102.  Calculates the absolute value of a complex number. Long double-precision
  10103.  floating-point version of cabs.
  10104.  
  10105.   ANSI   DOS   OS/2   UNIX   XENIX
  10106.  
  10107.  
  10108.  
  10109.  calloc
  10110.  ────────────────────────────────────────────────────────────────────────────
  10111.  
  10112.    void *calloc( size_t num, size_t size );
  10113.  
  10114.  Include                           STDLIB.H or MALLOC.H
  10115.  
  10116.  num                               Number of elements
  10117.  
  10118.  size                              Length in bytes of each element
  10119.  
  10120.  Returns                           A pointer to the allocated space; NULL
  10121.                                    if there is insufficient memory
  10122.                                    available
  10123.  
  10124.  Allocates storage for an array of num elements of size bytes. All bytes are
  10125.  initialized to 0.
  10126.  
  10127.   ANSI   DOS   OS/2   UNIX   XENIX
  10128.  
  10129.  
  10130.  
  10131.  ceil
  10132.  ────────────────────────────────────────────────────────────────────────────
  10133.  
  10134.    double ceil( double x );
  10135.  
  10136.  Include                           MATH.H
  10137.  
  10138.  x                                 Floating-point value
  10139.  
  10140.  Returns                           A value representing the smallest
  10141.                                    integer that is greater than or equal to
  10142.                                    the argument
  10143.  
  10144.  Calculates the ceiling of a value.
  10145.  
  10146.   ANSI   DOS   OS/2   UNIX   XENIX
  10147.  
  10148.  
  10149.  
  10150.  ceill
  10151.  ────────────────────────────────────────────────────────────────────────────
  10152.  
  10153.    long double ceill( long double x );
  10154.  
  10155.  Include                           MATH.H
  10156.  
  10157.  x                                 Long double-precision floating-point
  10158.                                    value
  10159.  
  10160.  Returns                           The long double result, rounded up
  10161.  
  10162.  Returns a long double-precision floating-point value representing the
  10163.  smallest integer that is greater than or equal to the argument.
  10164.  
  10165.   ANSI   DOS   OS/2   UNIX   XENIX
  10166.  
  10167.  
  10168.  
  10169.  _cexit
  10170.  ────────────────────────────────────────────────────────────────────────────
  10171.  
  10172.    void _cexit( void );
  10173.  
  10174.  Include                           PROCESS.H
  10175.  
  10176.  Returns                           No return value
  10177.  
  10178.  Performs the exit termination procedures (e.g., flushing buffers) but
  10179.  returns control to the caller; does not terminate the process.
  10180.  
  10181.   ANSI   DOS   OS/2   UNIX   XENIX
  10182.  
  10183.  
  10184.  
  10185.  _c_exit
  10186.  ────────────────────────────────────────────────────────────────────────────
  10187.  
  10188.    void _c_exit( void );
  10189.  
  10190.  Include                           PROCESS.H
  10191.  
  10192.  Returns                           No return value
  10193.  
  10194.  Performs _exit termination procedures (i.e., without cleanup operations),
  10195.  but returns control to the caller; does not terminate the process.
  10196.  
  10197.   ANSI   DOS   OS/2   UNIX   XENIX
  10198.  
  10199.  
  10200.  
  10201.  cgets
  10202.  ────────────────────────────────────────────────────────────────────────────
  10203.  
  10204.    char *cgets( char *buffer );
  10205.  
  10206.  Include                           CONIO.H
  10207.  
  10208.  buffer                            Storage location for data
  10209.  
  10210.  Returns                           A pointer to the start of a string of
  10211.                                    characters
  10212.  
  10213.  Reads a string of characters (excluding terminal \n) directly from the
  10214.  console and stores the string and its length in buffer.
  10215.  
  10216.   ANSI   DOS   OS/2   UNIX   XENIX
  10217.  
  10218.  
  10219.  
  10220.  _chain_intr
  10221.  ────────────────────────────────────────────────────────────────────────────
  10222.  
  10223.    void _chain_intr( void( _interrupt _far *target )( ) );
  10224.  
  10225.  Include                           DOS.H
  10226.  
  10227.  target                            Target interrupt routine
  10228.  
  10229.  Returns                           No return value
  10230.  
  10231.  Chains one interrupt handler to another interrupt handler.
  10232.  
  10233.   ANSI   DOS   OS/2   UNIX   XENIX
  10234.  
  10235.  
  10236.  
  10237.  chdir
  10238.  ────────────────────────────────────────────────────────────────────────────
  10239.  
  10240.    int chdir( char *dirname );
  10241.  
  10242.  Include                           DIRECT.H, ERRNO.H
  10243.  
  10244.  dirname                           Path name of new working directory
  10245.  
  10246.  Returns                           0 if the working directory is
  10247.                                    successfully changed; -1 if the
  10248.                                    specified path name could not be found
  10249.  
  10250.  errno                             ENOENT
  10251.  
  10252.  Changes the current working directory.
  10253.  
  10254.   ANSI   DOS   OS/2   UNIX   XENIX
  10255.  
  10256.  
  10257.  
  10258.  _chdrive
  10259.  ────────────────────────────────────────────────────────────────────────────
  10260.  
  10261.    int _chdrive( int drive );
  10262.  
  10263.  Include                           DIRECT.H
  10264.  
  10265.  drive                             Number of new working drive (A: = 1, B:
  10266.                                    = 2)
  10267.  
  10268.  Returns                           0 if the working drive is successfully
  10269.                                    changed; -1 if not
  10270.  
  10271.  Changes the current working drive.
  10272.  
  10273.   ANSI   DOS   OS/2   UNIX   XENIX
  10274.  
  10275.  
  10276.  
  10277.  chmod
  10278.  ────────────────────────────────────────────────────────────────────────────
  10279.  
  10280.    int chmod( char *filename, int pmode );
  10281.  
  10282.  Include                           SYS\TYPES.H, SYS\STAT.H, IO.H, ERRNO.H
  10283.  
  10284.  filename                          Path name of existing file
  10285.  
  10286.  pmode                             Permission setting for file
  10287.  
  10288.  Returns                           0 if the permission setting is
  10289.                                    successfully changed; ENOENT if the
  10290.                                    specified file could not be found
  10291.  
  10292.  errno                             ENOENT
  10293.  
  10294.  Changes file permission settings.
  10295.  
  10296.   ANSI   DOS   OS/2   UNIX   XENIX
  10297.  
  10298.  
  10299.  
  10300.  chsize
  10301.  ────────────────────────────────────────────────────────────────────────────
  10302.  
  10303.    int chsize( int handle, long size );
  10304.  
  10305.  Include                           IO.H, ERRNO.H
  10306.  
  10307.  handle                            Handle referring to open file
  10308.  
  10309.  size                              New length of file in bytes
  10310.  
  10311.  Returns                           0 if the file size is successfully
  10312.                                    changed; -1 if not
  10313.  
  10314.  errno                             EACCESS, EBADF, ENOSPC
  10315.  
  10316.  Changes the size of a file.
  10317.  
  10318.   ANSI   DOS   OS/2   UNIX   XENIX
  10319.  
  10320.  
  10321.  
  10322.  _clear87
  10323.  ────────────────────────────────────────────────────────────────────────────
  10324.  
  10325.    unsigned int _clear87( void );
  10326.  
  10327.  Include                           FLOAT.H
  10328.  
  10329.  Returns                           A word whose bits indicate the
  10330.                                    floating-point status
  10331.  
  10332.  Gets and clears a floating-point status word.
  10333.  
  10334.   ANSI   DOS   OS/2   UNIX   XENIX
  10335.  
  10336.  
  10337.  
  10338.  clearerr
  10339.  ────────────────────────────────────────────────────────────────────────────
  10340.  
  10341.    void clearerr( FILE *stream );
  10342.  
  10343.  Include                           STDIO.H
  10344.  
  10345.  stream                            Pointer to FILE structure
  10346.  
  10347.  Returns                           No return value
  10348.  
  10349.  Resets the error and end-of-file indicators for a stream.
  10350.  
  10351.   ANSI   DOS   OS/2   UNIX   XENIX
  10352.  
  10353.  
  10354.  
  10355.  _clearscreen
  10356.  ────────────────────────────────────────────────────────────────────────────
  10357.  
  10358.    void _far _clearscreen( short area );
  10359.  
  10360.  Include                           GRAPH.H
  10361.  
  10362.  area                              _GCLEARSCREEN, _GVIEWPORT, _GWINDOW
  10363.  
  10364.  Returns                           No return value
  10365.  
  10366.  Clears the screen and fills it with the current background color.
  10367.  
  10368.   ANSI   DOS   OS/2   UNIX   XENIX
  10369.  
  10370.  
  10371.  
  10372.  clock
  10373.  ────────────────────────────────────────────────────────────────────────────
  10374.  
  10375.    clock_t clock( void );
  10376.  
  10377.  Include                           TIME.H
  10378.  
  10379.  Returns                           The elapsed processor time; -1, cast as
  10380.                                    clock_t, if the processor time is not
  10381.                                    available
  10382.  
  10383.  Calculates how much processor time in seconds has been used by the calling
  10384.  process.
  10385.  
  10386.   ANSI   DOS   OS/2   UNIX   XENIX
  10387.  
  10388.  
  10389.  
  10390.  close
  10391.  ────────────────────────────────────────────────────────────────────────────
  10392.  
  10393.    int close( int handle );
  10394.  
  10395.  Include                           IO.H, ERRNO.H
  10396.  
  10397.  handle                            Handle referring to open file
  10398.  
  10399.  Returns                           0 if the file was successfully closed;
  10400.                                    -1 if the file-handle argument is
  10401.                                    invalid
  10402.  
  10403.  errno                             EBADF
  10404.  
  10405.  Closes a file.
  10406.  
  10407.   ANSI   DOS   OS/2   UNIX   XENIX
  10408.  
  10409.  
  10410.  
  10411.  _control87
  10412.  ────────────────────────────────────────────────────────────────────────────
  10413.  
  10414.    unsigned int _control87( unsigned int new, unsigned int mask );
  10415.  
  10416.  Include                           FLOAT.H
  10417.  
  10418.  new                               New control-word bit values
  10419.  
  10420.  mask                              Mask for new control-word bits to set
  10421.  
  10422.  Returns                           A word whose bits indicate the
  10423.                                    floating-point control state
  10424.  
  10425.  Gets and sets the floating-point control word.
  10426.  
  10427.   ANSI   DOS   OS/2   UNIX   XENIX
  10428.  
  10429.  
  10430.  
  10431.  cos
  10432.  ────────────────────────────────────────────────────────────────────────────
  10433.  
  10434.    double cos( double x );
  10435.  
  10436.  Include                           MATH.H, ERRNO.H
  10437.  
  10438.  x                                 Radians
  10439.  
  10440.  Returns                           The cosine of x; 0 if x is so large that
  10441.                                    significance is completely lost
  10442.  
  10443.  errno                             ERANGE
  10444.  
  10445.  Calculates the cosine of x.
  10446.  
  10447.   ANSI   DOS   OS/2   UNIX   XENIX
  10448.  
  10449.  
  10450.  
  10451.  cosh
  10452.  ────────────────────────────────────────────────────────────────────────────
  10453.  
  10454.    double cosh( double x );
  10455.  
  10456.  Include                           MATH.H, ERRNO.H
  10457.  
  10458.  x                                 Radians
  10459.  
  10460.  Returns                           The hyperbolic cosine of x; 0 if x is so
  10461.                                    large that significance is completely
  10462.                                    lost; HUGE_VAL if the result is too
  10463.                                    large
  10464.  
  10465.  errno                             ERANGE
  10466.  
  10467.  Calculates the hyperbolic cosine of x.
  10468.  
  10469.   ANSI   DOS   OS/2   UNIX   XENIX
  10470.  
  10471.  
  10472.  
  10473.  coshl
  10474.  ────────────────────────────────────────────────────────────────────────────
  10475.  
  10476.    long double coshl( long double x );
  10477.  
  10478.  Include                           MATH.H, ERRNO.H
  10479.  
  10480.  x                                 Radians
  10481.  
  10482.  Returns                           The hyperbolic cosine of x if
  10483.                                    successful; 0 if x is so large that
  10484.                                    significance is completely lost;
  10485.                                    _LHUGE_VAL if the result is too large
  10486.  
  10487.  errno                             ERANGE
  10488.  
  10489.  Calculates the hyperbolic cosine of x. Long double-precision floating-point
  10490.  version of cosh.
  10491.  
  10492.   ANSI   DOS   OS/2   UNIX   XENIX
  10493.  
  10494.  
  10495.  
  10496.  cosl
  10497.  ────────────────────────────────────────────────────────────────────────────
  10498.  
  10499.    long double cosl( long double x );
  10500.  
  10501.  Include                           MATH.H, ERRNO.H
  10502.  
  10503.  x                                 Radians
  10504.  
  10505.  Returns                           The cosine of x if successful; 0 if x is
  10506.                                    so large that significance is completely
  10507.                                    lost
  10508.  
  10509.  errno                             ERANGE
  10510.  
  10511.  Calculates the cosine of x. Long double-precision floating-point version of
  10512.  cos.
  10513.  
  10514.   ANSI   DOS   OS/2   UNIX   XENIX
  10515.  
  10516.  
  10517.  
  10518.  cprintf
  10519.  ────────────────────────────────────────────────────────────────────────────
  10520.  
  10521.    int cprintf( char *format [[, argument]]... );
  10522.  
  10523.  Include                           CONIO.H
  10524.  
  10525.  format                            Format-control string
  10526.  
  10527.  argument                          Optional arguments
  10528.  
  10529.  Returns                           The number of characters printed
  10530.  
  10531.  Formats and prints to the console. See printf/scanf format table.
  10532.  
  10533.   ANSI   DOS   OS/2   UNIX   XENIX
  10534.  
  10535.  
  10536.  
  10537.  cputs
  10538.  ────────────────────────────────────────────────────────────────────────────
  10539.  
  10540.    int cputs( char *string );
  10541.  
  10542.  Include                           CONIO.H
  10543.  
  10544.  string                            Output string
  10545.  
  10546.  Returns                           0 if successful; a nonzero value if not
  10547.  
  10548.  Writes a null-terminated string directly to the console.
  10549.  
  10550.   ANSI   DOS   OS/2   UNIX   XENIX
  10551.  
  10552.  
  10553.  
  10554.  creat
  10555.  ────────────────────────────────────────────────────────────────────────────
  10556.  
  10557.    int creat( char *filename, int pmode );
  10558.  
  10559.  Include                           SYS\TYPES.H, SYS\STAT.H, IO.H, ERRNO.H
  10560.  
  10561.  filename                          Path name of new file
  10562.  
  10563.  pmode                             S_IWRITE, S_IREAD, S_IREAD|S_IWRITE
  10564.  
  10565.  Returns                           A handle for the created file if
  10566.                                    successful; -1 if not
  10567.  
  10568.  errno                             EACCESS, EMFILE, ENOENT
  10569.  
  10570.  Creates a new file or opens and truncates an existing file.
  10571.  
  10572.   ANSI   DOS   OS/2   UNIX   XENIX
  10573.  
  10574.  
  10575.  
  10576.  cscanf
  10577.  ────────────────────────────────────────────────────────────────────────────
  10578.  
  10579.    int cscanf( char *format  [[, argument]]... );
  10580.  
  10581.  Include                           CONIO.H
  10582.  
  10583.  format                            Format-control string
  10584.  
  10585.  argument                          Optional arguments
  10586.  
  10587.  Returns                           The number of fields that were
  10588.                                    successfully converted and assigned; EOF
  10589.                                    for an attempt to read at end-of-file
  10590.  
  10591.  Reads formatted data directly from the console into a specified location.
  10592.  See printf/scanf format table.
  10593.  
  10594.   ANSI   DOS   OS/2   UNIX   XENIX
  10595.  
  10596.  
  10597.  
  10598.  ctime
  10599.  ────────────────────────────────────────────────────────────────────────────
  10600.  
  10601.    char *ctime( const time_t *timer );
  10602.  
  10603.  Include                           TIME.H
  10604.  
  10605.  timer                             Pointer to stored time
  10606.  
  10607.  Returns                           A pointer to the character string
  10608.                                    result; NULL if timer represents a date
  10609.                                    before 1980
  10610.  
  10611.  Converts time stored as a time_t value to a character string.
  10612.  
  10613.   ANSI   DOS   OS/2   UNIX   XENIX
  10614.  
  10615.  
  10616.  
  10617.  cwait
  10618.  ────────────────────────────────────────────────────────────────────────────
  10619.  
  10620.    int cwait( int *termstat, int procid, int action );
  10621.  
  10622.  Include                           PROCESS.H, ERRNO.H
  10623.  
  10624.  termstat                          Termination status and return code
  10625.  
  10626.  procid                            Child process identification
  10627.  
  10628.  action                            WAIT_CHILD, WAIT_GRANDCHILD
  10629.  
  10630.  Returns                           The child process identification after
  10631.                                    normal termination;
  10632.                                    -1 otherwise
  10633.  
  10634.  errno                             EINTR, EINVAL, ECHILD
  10635.  
  10636.  Suspends the calling process until the child process terminates, and updates
  10637.  the termstat variable.
  10638.  
  10639.   ANSI   DOS   OS/2   UNIX   XENIX
  10640.  
  10641.  
  10642.  
  10643.  dieeetomsbin
  10644.  ────────────────────────────────────────────────────────────────────────────
  10645.  
  10646.    int dieeetomsbin( double *src8, double *dst8 );
  10647.  
  10648.  Include                           MATH.H
  10649.  
  10650.  src8                              Buffer containing number to convert
  10651.  
  10652.  dst8                              Buffer for converted number
  10653.  
  10654.  Returns                           0 if the conversion is successful; 1 if
  10655.                                    the conversion causes an
  10656.                                    overflow
  10657.  
  10658.  Converts a double-precision number in IEEE format to Microsoft binary
  10659.  format.
  10660.  
  10661.   ANSI   DOS   OS/2   UNIX   XENIX
  10662.  
  10663.  
  10664.  
  10665.  difftime
  10666.  ────────────────────────────────────────────────────────────────────────────
  10667.  
  10668.    double difftime( time_t timer1, time_t timer0 );
  10669.  
  10670.  Include                           TIME.H
  10671.  
  10672.  timer1, timer0                    Time value structures defined in TIME.H
  10673.  
  10674.  Returns                           The difference between two times
  10675.  
  10676.  Computes the elapsed time in seconds between two time values.
  10677.  
  10678.   ANSI   DOS   OS/2   UNIX   XENIX
  10679.  
  10680.  
  10681.  
  10682.  _disable
  10683.  ────────────────────────────────────────────────────────────────────────────
  10684.  
  10685.    void _disable( void );
  10686.  
  10687.  Include                           DOS.H
  10688.  
  10689.  Returns                           No return value
  10690.  
  10691.  Disables interrupts by executing an 8086 CLI machine instruction.
  10692.  
  10693.   ANSI   DOS   OS/2   UNIX   XENIX
  10694.  
  10695.  
  10696.  
  10697.  _displaycursor
  10698.  ────────────────────────────────────────────────────────────────────────────
  10699.  
  10700.    short _far _displaycursor( short toggle );
  10701.  
  10702.  Include                           GRAPH.H
  10703.  
  10704.  toggle                            _GCURSOROFF, _GCURSORON
  10705.  
  10706.  Returns                           The previous value of toggle
  10707.  
  10708.  Determines whether the cursor will be displayed.
  10709.  
  10710.   ANSI   DOS   OS/2   UNIX   XENIX
  10711.  
  10712.  
  10713.  
  10714.  div
  10715.  ────────────────────────────────────────────────────────────────────────────
  10716.  
  10717.    div_t div( int numer, int denom );
  10718.  
  10719.  Include                           STDLIB.H
  10720.  
  10721.  numer                             Numerator
  10722.  
  10723.  denom                             Denominator
  10724.  
  10725.  Returns                           The quotient and remainder in a
  10726.                                    structure defined in STDLIB.H
  10727.  
  10728.  Divides the numerator by the denominator computing the quotient and
  10729.  remainder.
  10730.  
  10731.   ANSI   DOS   OS/2   UNIX   XENIX
  10732.  
  10733.  
  10734.  
  10735.  dmsbintoieee
  10736.  ────────────────────────────────────────────────────────────────────────────
  10737.  
  10738.    int dmsbintoieee( double *src8, double *dst8 );
  10739.  
  10740.  Include                           MATH.H
  10741.  
  10742.  src8                              Buffer containing number to convert
  10743.  
  10744.  dst8                              Buffer for converted number
  10745.  
  10746.  Returns                           0 if the conversion is successful; 1 if
  10747.                                    the conversion causes an
  10748.                                    overflow
  10749.  
  10750.  Converts a double-precision number in Microsoft binary format to IEEE
  10751.  format.
  10752.  
  10753.   ANSI   DOS   OS/2   UNIX   XENIX
  10754.  
  10755.  
  10756.  
  10757.  _dos_allocmem
  10758.  ────────────────────────────────────────────────────────────────────────────
  10759.  
  10760.    unsigned _dos_allocmem( unsigned size, unsigned *seg );
  10761.  
  10762.  Include                           DOS.H, ERRNO.H
  10763.  
  10764.  size                              Block size to allocate
  10765.  
  10766.  seg                               Segment descriptor return buffer
  10767.  
  10768.  Returns                           0 if successful; the DOS error code if
  10769.                                    not
  10770.  
  10771.  errno                             ENOMEM
  10772.  
  10773.  Allocates a block of memory size paragraphs long (16 bytes each).
  10774.  
  10775.   ANSI   DOS   OS/2   UNIX   XENIX
  10776.  
  10777.  
  10778.  
  10779.  _dos_close
  10780.  ────────────────────────────────────────────────────────────────────────────
  10781.  
  10782.    unsigned _dos_close( int handle );
  10783.  
  10784.  Include                           DOS.H, ERRNO.H
  10785.  
  10786.  handle                            Target file handle
  10787.  
  10788.  Returns                           0 if successful; the DOS error code if
  10789.                                    not
  10790.  
  10791.  errno                             EBADF
  10792.  
  10793.  Uses system call 0x3E to close a file.
  10794.  
  10795.   ANSI   DOS   OS/2   UNIX   XENIX
  10796.  
  10797.  
  10798.  
  10799.  _dos_creat
  10800.  ────────────────────────────────────────────────────────────────────────────
  10801.  
  10802.    unsigned _dos_creat( char *filename, unsigned attrib, int *handle );
  10803.  
  10804.  Include                           DOS.H, ERRNO.H
  10805.  
  10806.  filename                          File path name
  10807.  
  10808.  attrib                            _A_ARCH, _A_HIDDEN, _A_NORMAL, _A_RDONLY,
  10809.                                    _A_SUBDIR, _A_SYSTEM, _A_VOLID
  10810.  
  10811.  handle                            Handle return buffer
  10812.  
  10813.  Returns                           0 if successful; the DOS error code if
  10814.                                    not
  10815.  
  10816.  errno                             ENOENT, EMFILE, EACCESS, EEXIST
  10817.  
  10818.  Uses system call 0x3C to create a new file.
  10819.  
  10820.   ANSI   DOS   OS/2   UNIX   XENIX
  10821.  
  10822.  
  10823.  
  10824.  _dos_creatnew
  10825.  ────────────────────────────────────────────────────────────────────────────
  10826.  
  10827.    unsigned _dos_creatnew( char *filename, unsigned attrib, int *handle );
  10828.  
  10829.  Include                           DOS.H, ERRNO.H
  10830.  
  10831.  filename                          File path name
  10832.  
  10833.  attrib                            _A_ARCH, _A_HIDDEN, _A_NORMAL, _A_RDONLY,
  10834.                                    _A_SUBDIR, _A_SYSTEM, _A_VOLID
  10835.  
  10836.  handle                            Handle return buffer
  10837.  
  10838.  Returns                           0 if successful; the DOS error code if
  10839.                                    not
  10840.  
  10841.  errno                             ENOENT, EMFILE, EACCESS, EEXIST
  10842.  
  10843.  Uses system call 0x5B to create a new file.
  10844.  
  10845.   ANSI   DOS   OS/2   UNIX   XENIX
  10846.  
  10847.  
  10848.  
  10849.  dosexterr
  10850.  ────────────────────────────────────────────────────────────────────────────
  10851.  
  10852.    int dosexterr( struct DOSERROR *errorinfo );
  10853.  
  10854.  Include                           DOS.H
  10855.  
  10856.  errorinfo                         Error-information structure defined in
  10857.                                    DOS.H
  10858.  
  10859.  Returns                           The value in the AX register (identical
  10860.                                    to the value in the exterror structure
  10861.                                    field)
  10862.  
  10863.  Uses system call 0x59 to get extended error information.
  10864.  
  10865.   ANSI   DOS   OS/2   UNIX   XENIX
  10866.  
  10867.  
  10868.  
  10869.  _dos_findfirst
  10870.  ────────────────────────────────────────────────────────────────────────────
  10871.  
  10872.    unsigned _dos_findfirst( char *filename, unsigned attrib, struct find_t
  10873.    *fileinfo );
  10874.  
  10875.  Include                           DOS.H, ERRNO.H
  10876.  
  10877.  filename                          Target file name
  10878.  
  10879.  attrib                            _A_ARCH, _A_HIDDEN, _A_NORMAL, _A_RDONLY,
  10880.                                    _A_SUBDIR, _A_SYSTEM, _A_VOLID
  10881.  
  10882.  fileinfo                          File-information return structure
  10883.                                    defined in DOS.H
  10884.  
  10885.  Returns                           0 if successful; the DOS error code if
  10886.                                    not
  10887.  
  10888.  errno                             ENOENT
  10889.  
  10890.  Uses system call 0x4E to return information about the first instance of a
  10891.  file.
  10892.  
  10893.   ANSI   DOS   OS/2   UNIX   XENIX
  10894.  
  10895.  
  10896.  
  10897.  _dos_findnext
  10898.  ────────────────────────────────────────────────────────────────────────────
  10899.  
  10900.    unsigned _dos_findnext( struct find_t *fileinfo );
  10901.  
  10902.  Include                           DOS.H, ERRNO.H
  10903.  
  10904.  fileinfo                          File-information return structure
  10905.                                    defined in DOS.H
  10906.  
  10907.  Returns                           0 if successful; the DOS error code if
  10908.                                    not
  10909.  
  10910.  errno                             ENOENT
  10911.  
  10912.  Uses system call 0x4F to find the next file that matches the name and
  10913.  attributes specified in a prior call to _dos_findfirst.
  10914.  
  10915.   ANSI   DOS   OS/2   UNIX   XENIX
  10916.  
  10917.  
  10918.  
  10919.  _dos_freemem
  10920.  ────────────────────────────────────────────────────────────────────────────
  10921.  
  10922.    unsigned _dos_freemem( unsigned seg );
  10923.  
  10924.  Include                           DOS.H, ERRNO.H
  10925.  
  10926.  seg                               Block to be released
  10927.  
  10928.  Returns                           0 if successful; the DOS error code if
  10929.                                    not
  10930.  
  10931.  errno                             ENOMEM
  10932.  
  10933.  Uses system call 0x49 to release a block of memory previously allocated by
  10934.  _dos_allocmem.
  10935.  
  10936.   ANSI   DOS   OS/2   UNIX   XENIX
  10937.  
  10938.  
  10939.  
  10940.  _dos_getdate
  10941.  ────────────────────────────────────────────────────────────────────────────
  10942.  
  10943.    void _dos_getdate( struct dosdate_t *date );
  10944.  
  10945.  Include                           DOS.H
  10946.  
  10947.  date                              Current date structure defined in DOS.H
  10948.  
  10949.  Returns                           No return value
  10950.  
  10951.  Uses system call 0x2A to get the current system date.
  10952.  
  10953.   ANSI   DOS   OS/2   UNIX   XENIX
  10954.  
  10955.  
  10956.  
  10957.  _dos_getdiskfree
  10958.  ────────────────────────────────────────────────────────────────────────────
  10959.  
  10960.    unsigned _dos_getdiskfree( unsigned drive, struct diskfree_t *diskspace );
  10961.  
  10962.  Include                           DOS.H, ERRNO.H
  10963.  
  10964.  drive                             Target disk drive
  10965.  
  10966.  diskspace                         Disk-information structure defined in
  10967.                                    DOS.H
  10968.  
  10969.  Returns                           0 if successful; a nonzero value if not
  10970.  
  10971.  errno                             EINVAL
  10972.  
  10973.  Uses system call 0x36 to get information on a disk drive.
  10974.  
  10975.   ANSI   DOS   OS/2   UNIX   XENIX
  10976.  
  10977.  
  10978.  
  10979.  _dos_getdrive
  10980.  ────────────────────────────────────────────────────────────────────────────
  10981.  
  10982.    void _dos_getdrive( unsigned *drive );
  10983.  
  10984.  Include                           DOS.H
  10985.  
  10986.  drive                             Current drive return buffer
  10987.  
  10988.  Returns                           No return value
  10989.  
  10990.  Uses system call 0x19 to get the current disk drive (A: = 0, B: = 1).
  10991.  
  10992.   ANSI   DOS   OS/2   UNIX   XENIX
  10993.  
  10994.  
  10995.  
  10996.  _dos_getfileattr
  10997.  ────────────────────────────────────────────────────────────────────────────
  10998.  
  10999.    unsigned _dos_getfileattr( char *pathname, unsigned *attrib );
  11000.  
  11001.  Include                           DOS.H, ERRNO.H
  11002.  
  11003.  pathname                          Full path of target file or directory
  11004.  
  11005.  attrib                            _A_ARCH, _A_HIDDEN, _A_NORMAL, _A_RDONLY,
  11006.                                    _A_SUBDIR, _A_SYSTEM, _A_VOLID
  11007.  
  11008.  Returns                           0 if successful; the DOS error code if
  11009.                                    not
  11010.  
  11011.  errno                             ENOENT
  11012.  
  11013.  Uses system call 0x43 to get the current attributes of a file or directory.
  11014.  
  11015.  
  11016.   ANSI   DOS   OS/2   UNIX   XENIX
  11017.  
  11018.  
  11019.  
  11020.  _dos_getftime
  11021.  ────────────────────────────────────────────────────────────────────────────
  11022.  
  11023.    unsigned _dos_getftime( int handle, unsigned *date, unsigned *time );
  11024.  
  11025.  Include                           DOS.H, ERRNO.H
  11026.  
  11027.  handle                            Target file
  11028.  
  11029.  date                              Date-return buffer
  11030.  
  11031.  time                              Time-return buffer
  11032.  
  11033.  Returns                           0 if successful; the DOS error code if
  11034.                                    not
  11035.  
  11036.  errno                             EBADF
  11037.  
  11038.  Uses system call 0x57 to get the time and date a file was last written.
  11039.  
  11040.   ANSI   DOS   OS/2   UNIX   XENIX
  11041.  
  11042.  
  11043.  
  11044.  _dos_gettime
  11045.  ────────────────────────────────────────────────────────────────────────────
  11046.  
  11047.    void _dos_gettime( struct dostime_t *time );
  11048.  
  11049.  Include                           DOS.H
  11050.  
  11051.  time                              Current system time structure defined in
  11052.                                    DOS.H
  11053.  
  11054.  Returns                           No return value
  11055.  
  11056.  Uses system call 0x2C to get the current system time.
  11057.  
  11058.   ANSI   DOS   OS/2   UNIX   XENIX
  11059.  
  11060.  
  11061.  
  11062.  _dos_getvect
  11063.  ────────────────────────────────────────────────────────────────────────────
  11064.  
  11065.    void( _interrupt _far *_dos_getvect( unsigned intnum ) )( );
  11066.  
  11067.  Include                           DOS.H
  11068.  
  11069.  intnum                            Target interrupt vector
  11070.  
  11071.  Returns                           Far pointer to the current interrupt
  11072.                                    handler
  11073.  
  11074.  Uses system call 0x35 to get the current value of an interrupt vector.
  11075.  
  11076.   ANSI   DOS   OS/2   UNIX   XENIX
  11077.  
  11078.  
  11079.  
  11080.  _dos_keep
  11081.  ────────────────────────────────────────────────────────────────────────────
  11082.  
  11083.    void _dos_keep( unsigned retcode, unsigned memsize );
  11084.  
  11085.  Include                           DOS.H
  11086.  
  11087.  retcode                           Exit status code
  11088.  
  11089.  memsize                           Allocated resident memory in 16-byte
  11090.                                    paragraphs
  11091.  
  11092.  Returns                           No return value
  11093.  
  11094.  Uses system call 0x31 to install a terminate-and-stay-resident (TSR) program
  11095.  in memory.
  11096.  
  11097.   ANSI   DOS   OS/2   UNIX   XENIX
  11098.  
  11099.  
  11100.  
  11101.  _dos_open
  11102.  ────────────────────────────────────────────────────────────────────────────
  11103.  
  11104.    unsigned _dos_open( char *filename, unsigned mode, int *handle );
  11105.  
  11106.  Include                           DOS.H, FCNTL.H, SHARE.H, ERRNO.H
  11107.  
  11108.  filename                          Path name to an existing file
  11109.  
  11110.  mode                              O_RDONLY, O_WRONLY, O_RDWR, SH_COMPAT,
  11111.                                    SH_DENYRW, SH_DENYWR, SH_DENYRD,
  11112.                                    SH_DENYNO, O_NOINHERIT
  11113.  
  11114.  handle                            Handle-return buffer
  11115.  
  11116.  Returns                           0 if successful; the DOS error code if
  11117.                                    not
  11118.  
  11119.  errno                             EINVAL, ENOENT, EMFILE, EACCESS
  11120.  
  11121.  Uses system call 0x3D to open an existing file, with modes specified by
  11122.  mode.
  11123.  
  11124.   ANSI   DOS   OS/2   UNIX   XENIX
  11125.  
  11126.  
  11127.  
  11128.  _dos_read
  11129.  ────────────────────────────────────────────────────────────────────────────
  11130.  
  11131.    unsigned _dos_read( int handle, void _far *buffer, unsigned count,
  11132.    unsigned *numread );
  11133.  
  11134.  Include                           DOS.H, ERRNO.H
  11135.  
  11136.  handle                            File to read
  11137.  
  11138.  buffer                            Buffer to write to
  11139.  
  11140.  count                             Number of bytes to read
  11141.  
  11142.  numread                           Number of bytes actually read
  11143.  
  11144.  Returns                           0 if successful; the DOS error code if
  11145.                                    not
  11146.  
  11147.  errno                             EACCESS, EBADF
  11148.  
  11149.  Uses system call 0x3F to read data from a file.
  11150.  
  11151.   ANSI   DOS   OS/2   UNIX   XENIX
  11152.  
  11153.  
  11154.  
  11155.  _dos_setblock
  11156.  ────────────────────────────────────────────────────────────────────────────
  11157.  
  11158.    unsigned _dos_setblock( unsigned size, unsigned seg, unsigned *maxsize );
  11159.  
  11160.  Include                           DOS.H, ERRNO.H
  11161.  
  11162.  size                              New segment size
  11163.  
  11164.  seg                               Target segment
  11165.  
  11166.  maxsize                           Maximum size buffer
  11167.  
  11168.  Returns                           0 if successful; the DOS error code if
  11169.                                    not
  11170.  
  11171.  errno                             ENOMEM
  11172.  
  11173.  Changes the size of a segment previously allocated by _dos_allocmem.
  11174.  
  11175.   ANSI   DOS   OS/2   UNIX   XENIX
  11176.  
  11177.  
  11178.  
  11179.  _dos_setdate
  11180.  ────────────────────────────────────────────────────────────────────────────
  11181.  
  11182.    unsigned _dos_setdate( struct dosdate_t *date );
  11183.  
  11184.  Include                           DOS.H, ERRNO.H
  11185.  
  11186.  date                              System date structure defined in DOS.H
  11187.  
  11188.  Returns                           0 if successful; a nonzero value if not
  11189.  
  11190.  errno                             EINVAL
  11191.  
  11192.  Uses system call 0x2B to set the current system date.
  11193.  
  11194.   ANSI   DOS   OS/2   UNIX   XENIX
  11195.  
  11196.  
  11197.  
  11198.  _dos_setdrive
  11199.  ────────────────────────────────────────────────────────────────────────────
  11200.  
  11201.    void _dos_setdrive( unsigned drive, unsigned *numdrives );
  11202.  
  11203.  Include                           DOS.H
  11204.  
  11205.  drive                             New default drive
  11206.  
  11207.  numdrives                         Total drives available
  11208.  
  11209.  Returns                           No return value
  11210.  
  11211.  Uses system call 0x0E to set the current default drive.
  11212.  
  11213.   ANSI   DOS   OS/2   UNIX   XENIX
  11214.  
  11215.  
  11216.  
  11217.  _dos_setfileattr
  11218.  ────────────────────────────────────────────────────────────────────────────
  11219.  
  11220.    unsigned _dos_setfileattr( char *pathname, unsigned attrib );
  11221.  
  11222.  Include                           DOS.H, ERRNO.H
  11223.  
  11224.  pathname                          Full path of target file or directory
  11225.  
  11226.  attrib                            _A_ARCH, _A_HIDDEN, _A_NORMAL, _A_RDONLY,
  11227.                                    _A_SUBDIR, _A_SYSTEM, _A_VOLID
  11228.  
  11229.  Returns                           0 if successful; the DOS error code if
  11230.                                    not
  11231.  
  11232.  errno                             EACCESS, ENOENT
  11233.  
  11234.  Uses system call 0x43 to set the attributes of a file or a directory.
  11235.  
  11236.   ANSI   DOS   OS/2   UNIX   XENIX
  11237.  
  11238.  
  11239.  
  11240.  _dos_setftime
  11241.  ────────────────────────────────────────────────────────────────────────────
  11242.  
  11243.    unsigned _dos_setftime( int handle, unsigned date, unsigned time );
  11244.  
  11245.  Include                           DOS.H, ERRNO.H
  11246.  
  11247.  handle                            Target file
  11248.  
  11249.  date                              Date of last write
  11250.  
  11251.  time                              Time of last write
  11252.  
  11253.  Returns                           0 if successful; the DOS error code if
  11254.                                    not
  11255.  
  11256.  errno                             EBADF
  11257.  
  11258.  Uses system call 0x57 to set the date and time a file was last written.
  11259.  
  11260.   ANSI   DOS   OS/2   UNIX   XENIX
  11261.  
  11262.  
  11263.  
  11264.  _dos_settime
  11265.  ────────────────────────────────────────────────────────────────────────────
  11266.  
  11267.    unsigned _dos_settime( struct dostime_t *time );
  11268.  
  11269.  Include                           DOS.H, ERRNO.H
  11270.  
  11271.  time                              System time structure defined in DOS.H
  11272.  
  11273.  Returns                           0 if successful; a nonzero value if not
  11274.  
  11275.  errno                             EINVAL
  11276.  
  11277.  Uses system call 0x2D to set the current system time.
  11278.  
  11279.   ANSI   DOS   OS/2   UNIX   XENIX
  11280.  
  11281.  
  11282.  
  11283.  _dos_setvect
  11284.  ────────────────────────────────────────────────────────────────────────────
  11285.  
  11286.    void _dos_setvect( unsigned intnum, void( _interrupt _far *handler )( ) );
  11287.  
  11288.  Include                           DOS.H
  11289.  
  11290.  intnum                            Target interrupt vector
  11291.  
  11292.  handler                           Interrupt handler to assign
  11293.  
  11294.  Returns                           No return value
  11295.  
  11296.  Uses system call 0x25 to set the current value of an interrupt vector.
  11297.  
  11298.   ANSI   DOS   OS/2   UNIX   XENIX
  11299.  
  11300.  
  11301.  
  11302.  _dos_write
  11303.  ────────────────────────────────────────────────────────────────────────────
  11304.  
  11305.    unsigned _dos_write( int handle, void _far *buffer, unsigned count,
  11306.    unsigned *numwrt );
  11307.  
  11308.  Include                           DOS.H, ERRNO.H
  11309.  
  11310.  handle                            File to write to
  11311.  
  11312.  buffer                            Buffer to write from
  11313.  
  11314.  count                             Number of bytes to write
  11315.  
  11316.  numwrt                            Number of bytes actually written
  11317.  
  11318.  Returns                           0 if successful; the DOS error code if
  11319.                                    not
  11320.  
  11321.  errno                             EACCESS, EBADF
  11322.  
  11323.  Uses system call 0x40 to write data to a file.
  11324.  
  11325.   ANSI   DOS   OS/2   UNIX   XENIX
  11326.  
  11327.  
  11328.  
  11329.  dup
  11330.  ────────────────────────────────────────────────────────────────────────────
  11331.  
  11332.    int dup( int handle );
  11333.  
  11334.  Include                           IO.H, ERRNO.H
  11335.  
  11336.  handle                            Handle of an open file
  11337.  
  11338.  Returns                           A new file handle if successful; -1 if
  11339.                                    not
  11340.  
  11341.  errno                             EBADF, EMFILE
  11342.  
  11343.  Associates a second file handle with the currently open file.
  11344.  
  11345.   ANSI   DOS   OS/2   UNIX   XENIX
  11346.  
  11347.  
  11348.  
  11349.  dup2
  11350.  ────────────────────────────────────────────────────────────────────────────
  11351.  
  11352.    int dup2( int handle1, int handle2 );
  11353.  
  11354.  Include                           IO.H, ERRNO.H
  11355.  
  11356.  handle1                           Handle of an open file
  11357.  
  11358.  handle2                           Any handle value
  11359.  
  11360.  Returns                           0 if successful; -1 if not
  11361.  
  11362.  errno                             EBADF, EMFILE
  11363.  
  11364.  Associates the specified second handle with the currently open file.
  11365.  
  11366.   ANSI   DOS   OS/2   UNIX   XENIX
  11367.  
  11368.  
  11369.  
  11370.  
  11371.  
  11372.  
  11373.  ecvt
  11374.  ────────────────────────────────────────────────────────────────────────────
  11375.  
  11376.    char *ecvt( double value, int count, int *dec, int *sign );
  11377.  
  11378.  Include                           STDLIB.H
  11379.  
  11380.  value                             Number to be converted
  11381.  
  11382.  count                             Number of digits stored
  11383.  
  11384.  dec                               Stored decimal-point position
  11385.  
  11386.  sign                              Sign of converted number
  11387.  
  11388.  Returns                           A pointer to the string of digits
  11389.  
  11390.  Converts a floating-point number to a character string.
  11391.  
  11392.   ANSI   DOS   OS/2   UNIX   XENIX
  11393.  
  11394.  
  11395.  
  11396.  _ellipse
  11397.  ────────────────────────────────────────────────────────────────────────────
  11398.  
  11399.    short _far _ellipse( short control, short x1, short y1, short x2, short y2
  11400.    );
  11401.  
  11402.  Include                           GRAPH.H
  11403.  
  11404.  control                           _GFILLINTERIOR, _GBORDER
  11405.  
  11406.  x1, y1                            Upper left corner of bounding rectangle
  11407.  
  11408.  x2, y2                            Lower right corner of bounding rectangle
  11409.  
  11410.  Returns                           A nonzero value if anything is drawn; 0
  11411.                                    if nothing is drawn
  11412.  
  11413.  Draws an ellipse using view coordinates.
  11414.  
  11415.   ANSI   DOS   OS/2   UNIX   XENIX
  11416.  
  11417.  
  11418.  
  11419.  _ellipse_w
  11420.  ────────────────────────────────────────────────────────────────────────────
  11421.  
  11422.    short _far _ellipse_w( short control, double wx1, double wy1, double wx2,
  11423.    double wy2 );
  11424.  
  11425.  Include                           GRAPH.H
  11426.  
  11427.  control                           _GFILLINTERIOR, _GBORDER
  11428.  
  11429.  wx1, wy1                          Upper left corner of bounding rectangle
  11430.  
  11431.  wx2, wy2                          Lower right corner of bounding rectangle
  11432.  
  11433.  Returns                           A nonzero value if anything is drawn; 0
  11434.                                    if nothing is drawn
  11435.  
  11436.  Draws an ellipse using window coordinates.
  11437.  
  11438.   ANSI   DOS   OS/2   UNIX   XENIX
  11439.  
  11440.  
  11441.  
  11442.  _ellipse_wxy
  11443.  ────────────────────────────────────────────────────────────────────────────
  11444.  
  11445.    short _far _ellipse_wxy( short control, struct _wxycoord _far *pwxy1,
  11446.    struct _wxycoord _far *pwxy2 );
  11447.  
  11448.  Include                           GRAPH.H
  11449.  
  11450.  control                           _GFILLINTERIOR, _GBORDER
  11451.  
  11452.  pwxy1                             Upper left corner of bounding rectangle
  11453.  
  11454.  pwxy2                             Lower right corner of bounding rectangle
  11455.  
  11456.  Returns                           A nonzero value if successful; 0 if not
  11457.  
  11458.  Draws an ellipse using window coordinates.
  11459.  
  11460.   ANSI   DOS   OS/2   UNIX   XENIX
  11461.  
  11462.  
  11463.  
  11464.  _enable
  11465.  ────────────────────────────────────────────────────────────────────────────
  11466.  
  11467.    void _enable( void );
  11468.  
  11469.  Include                           DOS.H
  11470.  
  11471.  Returns                           No return value
  11472.  
  11473.  Enables interrupts by executing an 8086 STI machine instruction.
  11474.  
  11475.   ANSI   DOS   OS/2   UNIX   XENIX
  11476.  
  11477.  
  11478.  
  11479.  _endthread
  11480.  ────────────────────────────────────────────────────────────────────────────
  11481.  
  11482.    void _far _endthread( void );
  11483.  
  11484.  Include                           PROCESS.H
  11485.  
  11486.  Returns                           No return value
  11487.  
  11488.  Terminates a thread created by _beginthread.
  11489.  
  11490.   ANSI   DOS   OS/2   UNIX   XENIX
  11491.  
  11492.  
  11493.  
  11494.  eof
  11495.  ────────────────────────────────────────────────────────────────────────────
  11496.  
  11497.    int eof( int handle );
  11498.  
  11499.  Include                           IO.H, ERRNO.H
  11500.  
  11501.  handle                            Handle referring to open file
  11502.  
  11503.  Returns                           1 if the current position is
  11504.                                    end-of-file; 0 if not; -1 if an error
  11505.                                    has
  11506.                                    occurred
  11507.  
  11508.  errno                             EBADF
  11509.  
  11510.  Determines whether the end of the file has been reached.
  11511.  
  11512.   ANSI   DOS   OS/2   UNIX   XENIX
  11513.  
  11514.  
  11515.  
  11516.  execl
  11517.  ────────────────────────────────────────────────────────────────────────────
  11518.  
  11519.    int execl( char *cmdname, char *arg0, ... char *argn, NULL );
  11520.  
  11521.  Include                           PROCESS.H, ERRNO.H
  11522.  
  11523.  cmdname                           Path name of file to be executed
  11524.  
  11525.  arg0, ... argn                    List of pointers to arguments,
  11526.                                    terminated by NULL
  11527.  
  11528.  Returns                           Does not normally return to the calling
  11529.                                    process, but if it does, an error has
  11530.                                    occurred and the return value is -1
  11531.  
  11532.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11533.                                    ENOMEM
  11534.  
  11535.  Loads and executes a new child process, terminating the calling process.
  11536.  Command-line arguments are passed individually.
  11537.  
  11538.   ANSI   DOS   OS/2   UNIX   XENIX
  11539.  
  11540.  
  11541.  
  11542.  execle
  11543.  ────────────────────────────────────────────────────────────────────────────
  11544.  
  11545.    int execle( char *cmdname, char *arg0, ... char *argn, NULL, char **envp
  11546.    );
  11547.  
  11548.  Include                           PROCESS.H, ERRNO.H
  11549.  
  11550.  cmdname                           Path name of file to be executed
  11551.  
  11552.  arg0, ... argn                    List of pointers to arguments,
  11553.                                    terminated by NULL
  11554.  
  11555.  envp                              Array of pointers to environment
  11556.                                    settings
  11557.  
  11558.  Returns                           Does not normally return to the calling
  11559.                                    process, but if it does, an error has
  11560.                                    occurred and the return value is -1
  11561.  
  11562.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11563.                                    ENOMEM
  11564.  
  11565.  Loads and executes a new child process, terminating the calling process.
  11566.  Command-line arguments are passed individually. An array of pointers to
  11567.  environment arguments is explicitly passed to the child process.
  11568.  
  11569.   ANSI   DOS   OS/2   UNIX   XENIX
  11570.  
  11571.  
  11572.  
  11573.  execlp
  11574.  ────────────────────────────────────────────────────────────────────────────
  11575.  
  11576.    int execlp( char *cmdname, char *arg0, ... char *argn, NULL );
  11577.  
  11578.  Include                           PROCESS.H, ERRNO.H
  11579.  
  11580.  cmdname                           Path name of file to be executed
  11581.  
  11582.  arg0, ... argn                    List of pointers to arguments,
  11583.                                    terminated by NULL
  11584.  
  11585.  Returns                           Does not normally return to the calling
  11586.                                    process, but if it does, an error has
  11587.                                    occurred and the return value is -1
  11588.  
  11589.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11590.                                    ENOMEM
  11591.  
  11592.  Loads and executes a new child process, terminating the calling process.
  11593.  Command-line arguments are passed individually. Uses the PATH environment
  11594.  variable to find the file to be executed.
  11595.  
  11596.   ANSI   DOS   OS/2   UNIX   XENIX
  11597.  
  11598.  
  11599.  
  11600.  execlpe
  11601.  ────────────────────────────────────────────────────────────────────────────
  11602.  
  11603.    int execlpe( char *cmdname, char *arg0, ... char *argn, NULL, char **envp
  11604.    );
  11605.  
  11606.  Include                           PROCESS.H, ERRNO.H
  11607.  
  11608.  cmdname                           Path name of file to be executed
  11609.  
  11610.  arg0, ... argn                    List of pointers to arguments,
  11611.                                    terminated by NULL
  11612.  
  11613.  envp                              Array of pointers to environment
  11614.                                    settings
  11615.  
  11616.  Returns                           Does not normally return to the calling
  11617.                                    process, but if it does, an error has
  11618.                                    occurred and the return value is -1
  11619.  
  11620.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11621.                                    ENOMEM
  11622.  
  11623.  Loads and executes a new child process, terminating the calling process.
  11624.  Command-line arguments are passed individually. Uses the PATH environment
  11625.  variable to find the file to be executed. An array of pointers to
  11626.  environment arguments is explicitly passed to the child process.
  11627.  
  11628.   ANSI   DOS   OS/2   UNIX   XENIX
  11629.  
  11630.  
  11631.  
  11632.  execv
  11633.  ────────────────────────────────────────────────────────────────────────────
  11634.  
  11635.    int execv( char *cmdname, char **argv );
  11636.  
  11637.  Include                           PROCESS.H, ERRNO.H
  11638.  
  11639.  cmdname                           Path name of file to be executed
  11640.  
  11641.  argv                              Array of pointers to arguments
  11642.  
  11643.  Returns                           Does not normally return to the calling
  11644.                                    process, but if it does, an error has
  11645.                                    occurred and the return value is -1
  11646.  
  11647.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11648.                                    ENOMEM
  11649.  
  11650.  Loads and executes a new child process, terminating the calling process.
  11651.  Command-line arguments are passed as an array of pointers.
  11652.  
  11653.   ANSI   DOS   OS/2   UNIX   XENIX
  11654.  
  11655.  
  11656.  
  11657.  execve
  11658.  ────────────────────────────────────────────────────────────────────────────
  11659.  
  11660.    int execve( char *cmdname, char **argv, char **envp );
  11661.  
  11662.  Include                           PROCESS.H, ERRNO.H
  11663.  
  11664.  cmdname                           Path name of file to be executed
  11665.  
  11666.  argv                              Array of pointers to arguments
  11667.  
  11668.  envp                              Array of pointers to environment
  11669.                                    settings
  11670.  
  11671.  Returns                           Does not normally return to the calling
  11672.                                    process, but if it does, an error has
  11673.                                    occurred and the return value is -1
  11674.  
  11675.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11676.                                    ENOMEM
  11677.  
  11678.  Loads and executes a new child process, terminating the calling process.
  11679.  Command-line arguments are passed as an array of pointers. An array of
  11680.  pointers to environment arguments is explicitly passed to the child process.
  11681.  
  11682.  
  11683.   ANSI   DOS   OS/2   UNIX   XENIX
  11684.  
  11685.  
  11686.  
  11687.  execvp
  11688.  ────────────────────────────────────────────────────────────────────────────
  11689.  
  11690.    int execvp( char *cmdname, char **argv );
  11691.  
  11692.  Include                           PROCESS.H, ERRNO.H
  11693.  
  11694.  cmdname                           Path name of file to be executed
  11695.  
  11696.  argv                              Array of pointers to arguments
  11697.  
  11698.  Returns                           Does not normally return to the calling
  11699.                                    process, but if it does, an error has
  11700.                                    occurred and the return value is -1
  11701.  
  11702.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11703.                                    ENOMEM
  11704.  
  11705.  Loads and executes a new child process, terminating the calling process.
  11706.  Command-line arguments are passed as an array of pointers. Uses the PATH
  11707.  environment variable to find the file to be executed.
  11708.  
  11709.   ANSI   DOS   OS/2   UNIX   XENIX
  11710.  
  11711.  
  11712.  
  11713.  execvpe
  11714.  ────────────────────────────────────────────────────────────────────────────
  11715.  
  11716.    int execvpe( char *cmdname, char **argv, char **envp );
  11717.  
  11718.  Include                           PROCESS.H, ERRNO.H
  11719.  
  11720.  cmdname                           Path name of file to be executed
  11721.  
  11722.  argv                              Array of pointers to arguments
  11723.  
  11724.  envp                              Array of pointers to environment
  11725.                                    settings
  11726.  
  11727.  Returns                           Does not normally return to the calling
  11728.                                    process, but if it does, an error has
  11729.                                    occurred and the return value is -1
  11730.  
  11731.  errno                             E2BIG, EACCESS, EMFILE, ENOENT, ENOEXEC,
  11732.                                    ENOMEM
  11733.  
  11734.  Loads and executes a new child process, terminating the calling process.
  11735.  Command-line arguments are passed as an array of pointers. Uses the PATH
  11736.  environment variable to find the file to be executed. An array of pointers
  11737.  to environment arguments is explicitly passed to the child process.
  11738.  
  11739.   ANSI   DOS   OS/2   UNIX   XENIX
  11740.  
  11741.  
  11742.  
  11743.  exit
  11744.  ────────────────────────────────────────────────────────────────────────────
  11745.  
  11746.    void exit( int status );
  11747.  
  11748.  Include                           PROCESS.H or STDLIB.H
  11749.  
  11750.  status                            Exit status
  11751.  
  11752.  Returns                           No return value
  11753.  
  11754.  Terminates a process after normal cleanup operations (e.g., flushing
  11755.  buffers).
  11756.  
  11757.   ANSI   DOS   OS/2   UNIX   XENIX
  11758.  
  11759.  
  11760.  
  11761.  _exit
  11762.  ────────────────────────────────────────────────────────────────────────────
  11763.  
  11764.    void _exit( int status );
  11765.  
  11766.  Include                           PROCESS.H or STDLIB.H
  11767.  
  11768.  status                            Exit status
  11769.  
  11770.  Returns                           No return value
  11771.  
  11772.  Terminates a process without normal cleanup operations.
  11773.  
  11774.   ANSI   DOS   OS/2   UNIX   XENIX
  11775.  
  11776.  
  11777.  
  11778.  exp
  11779.  ────────────────────────────────────────────────────────────────────────────
  11780.  
  11781.    double exp( double x );
  11782.  
  11783.  Include                           MATH.H, ERRNO.H
  11784.  
  11785.  x                                 Floating-point value
  11786.  
  11787.  Returns                           Exponential function of x if successful;
  11788.                                    0 on underflow; HUGE_VAL on overflow
  11789.  
  11790.  errno                             ERANGE
  11791.  
  11792.  Returns the exponential function of the floating-point argument x.
  11793.  
  11794.   ANSI   DOS   OS/2   UNIX   XENIX
  11795.  
  11796.  
  11797.  
  11798.  _expand
  11799.  ────────────────────────────────────────────────────────────────────────────
  11800.  
  11801.    void *_expand( void *memblock, size_t size );
  11802.  
  11803.  Include                           MALLOC.H
  11804.  
  11805.  memblock                          Pointer to previously allocated memory
  11806.                                    block
  11807.  
  11808.  size                              New size in bytes
  11809.  
  11810.  Returns                           A pointer to the resized memory block;
  11811.                                    NULL if there is insufficient memory to
  11812.                                    expand the block
  11813.  
  11814.  Changes the size of a previously allocated memory block by attempting to
  11815.  expand or contract the block without moving its location in the heap.
  11816.  
  11817.   ANSI   DOS   OS/2   UNIX   XENIX
  11818.  
  11819.  
  11820.  
  11821.  expl
  11822.  ────────────────────────────────────────────────────────────────────────────
  11823.  
  11824.    long double expl( long double x );
  11825.  
  11826.  Include                           MATH.H, ERRNO.H
  11827.  
  11828.  x                                 Long double-precision floating-point
  11829.                                    value
  11830.  
  11831.  Returns                           Exponential function of x if successful;
  11832.                                    0 on underflow; _LHUGE_VAL on overflow
  11833.  
  11834.  errno                             ERANGE
  11835.  
  11836.  Returns the exponential function of the floating-point argument x. Long
  11837.  double-precision floating-point version of exp.
  11838.  
  11839.   ANSI   DOS   OS/2   UNIX   XENIX
  11840.  
  11841.  
  11842.  
  11843.  fabs
  11844.  ────────────────────────────────────────────────────────────────────────────
  11845.  
  11846.    double fabs( double x );
  11847.  
  11848.  Include                           MATH.H
  11849.  
  11850.  x                                 Floating-point value
  11851.  
  11852.  Returns                           The absolute value of x
  11853.  
  11854.  Gets the absolute value of a double-precision floating-point value.
  11855.  
  11856.   ANSI   DOS   OS/2   UNIX   XENIX
  11857.  
  11858.  
  11859.  
  11860.  fabsl
  11861.  ────────────────────────────────────────────────────────────────────────────
  11862.  
  11863.    long double fabsl( long double x );
  11864.  
  11865.  Include                           MATH.H
  11866.  
  11867.  x                                 Long double-precision floating-point
  11868.                                    value
  11869.  
  11870.  Returns                           The absolute value of x
  11871.  
  11872.  Gets the absolute value of a long double-precision floating-point value.
  11873.  
  11874.   ANSI   DOS   OS/2   UNIX   XENIX
  11875.  
  11876.  
  11877.  
  11878.  _fcalloc
  11879.  ────────────────────────────────────────────────────────────────────────────
  11880.  
  11881.    void _far *_fcalloc( size_t num, size_t size );
  11882.  
  11883.  Include                           MALLOC.H
  11884.  
  11885.  num                               Number of elements
  11886.  
  11887.  size                              Length in bytes of each element
  11888.  
  11889.  Returns                           A far pointer to the allocated space if
  11890.                                    successful; NULL if there is
  11891.                                    insufficient memory available
  11892.  
  11893.  Allocates storage space for an array in the far heap.
  11894.  
  11895.   ANSI   DOS   OS/2   UNIX   XENIX
  11896.  
  11897.  
  11898.  
  11899.  fclose
  11900.  ────────────────────────────────────────────────────────────────────────────
  11901.  
  11902.    int fclose( FILE *stream );
  11903.  
  11904.  Include                           STDIO.H
  11905.  
  11906.  stream                            Target stream
  11907.  
  11908.  Returns                           0 if the stream is successfully closed;
  11909.                                    EOF if not
  11910.  
  11911.  Closes an open stream.
  11912.  
  11913.   ANSI   DOS   OS/2   UNIX   XENIX
  11914.  
  11915.  
  11916.  
  11917.  fcloseall
  11918.  ────────────────────────────────────────────────────────────────────────────
  11919.  
  11920.    int fcloseall( void );
  11921.  
  11922.  Include                           STDIO.H
  11923.  
  11924.  Returns                           The total number of streams closed; EOF
  11925.                                    if an error occurs
  11926.  
  11927.  Closes all open streams.
  11928.  
  11929.   ANSI   DOS   OS/2   UNIX   XENIX
  11930.  
  11931.  
  11932.  
  11933.  fcvt
  11934.  ────────────────────────────────────────────────────────────────────────────
  11935.  
  11936.    char *fcvt( double value, int count, int *dec, int *sign );
  11937.  
  11938.  Include                           STDLIB.H
  11939.  
  11940.  value                             Number to be converted
  11941.  
  11942.  count                             Number of digits after decimal point
  11943.  
  11944.  dec                               Pointer to stored decimal-point position
  11945.  
  11946.  sign                              Pointer to stored sign indicator
  11947.  
  11948.  Returns                           A pointer to the string of digits
  11949.  
  11950.  Converts a floating-point number to a character string.
  11951.  
  11952.   ANSI   DOS   OS/2   UNIX   XENIX
  11953.  
  11954.  
  11955.  
  11956.  fdopen
  11957.  ────────────────────────────────────────────────────────────────────────────
  11958.  
  11959.    FILE *fdopen( int handle, char *mode );
  11960.  
  11961.  Include                           STDIO.H
  11962.  
  11963.  handle                            Handle of open file
  11964.  
  11965.  mode                              Access permissions: "r", "w", "a", "r+",
  11966.                                    "w+", "a+", "t", "b"
  11967.  
  11968.  Returns                           A pointer to the open stream if
  11969.                                    successful; NULL if not
  11970.  
  11971.  Associates a stream with a file handle, allowing a file opened for low-level
  11972.  I/O to be buffered and formatted.
  11973.  
  11974.   ANSI   DOS   OS/2   UNIX   XENIX
  11975.  
  11976.  
  11977.  
  11978.  feof
  11979.  ────────────────────────────────────────────────────────────────────────────
  11980.  
  11981.    int feof( FILE *stream );
  11982.  
  11983.  Include                           STDIO.H
  11984.  
  11985.  stream                            Pointer to a stream
  11986.  
  11987.  Returns                           A nonzero value after the first read
  11988.                                    operation that attempts to read past the
  11989.                                    end of the file; 0 if the current
  11990.                                    position is not end-of-file
  11991.  
  11992.  Determines whether the end of stream has been reached.
  11993.  
  11994.   ANSI   DOS   OS/2   UNIX   XENIX
  11995.  
  11996.  
  11997.  
  11998.  ferror
  11999.  ────────────────────────────────────────────────────────────────────────────
  12000.  
  12001.    int ferror( FILE *stream );
  12002.  
  12003.  Include                           STDIO.H
  12004.  
  12005.  stream                            Pointer to a stream
  12006.  
  12007.  Returns                           A nonzero value if an error occurred; 0
  12008.                                    if not
  12009.  
  12010.  Tests for a reading or writing error on stream.
  12011.  
  12012.   ANSI   DOS   OS/2   UNIX   XENIX
  12013.  
  12014.  
  12015.  
  12016.  _fexpand
  12017.  ────────────────────────────────────────────────────────────────────────────
  12018.  
  12019.    void _far *_fexpand( void _far *memblock, size_t size );
  12020.  
  12021.  Include                           MALLOC.H
  12022.  
  12023.  memblock                          Pointer to previously allocated memory
  12024.  
  12025.  size                              New size in bytes
  12026.  
  12027.  Returns                           A far pointer to the resized memory
  12028.                                    block if successful; NULL if not
  12029.  
  12030.  Changes the size of a block in the far heap.
  12031.  
  12032.   ANSI   DOS   OS/2   UNIX   XENIX
  12033.  
  12034.  
  12035.  
  12036.  fflush
  12037.  ────────────────────────────────────────────────────────────────────────────
  12038.  
  12039.    int fflush( FILE *stream );
  12040.  
  12041.  Include                           STDIO.H
  12042.  
  12043.  stream                            Pointer to target stream
  12044.  
  12045.  Returns                           0 if successful or where the specified
  12046.                                    stream has no buffer or is open for
  12047.                                    reading only; EOF otherwise
  12048.  
  12049.  Writes the contents of the buffer associated with the stream to the
  12050.  associated file.
  12051.  
  12052.   ANSI   DOS   OS/2   UNIX   XENIX
  12053.  
  12054.  
  12055.  
  12056.  _ffree
  12057.  ────────────────────────────────────────────────────────────────────────────
  12058.  
  12059.    void _ffree( void _far *memblock );
  12060.  
  12061.  Include                           MALLOC.H
  12062.  
  12063.  memblock                          Allocated memory block in the far heap
  12064.  
  12065.  Returns                           No return value
  12066.  
  12067.  Frees a memory block in the far heap.
  12068.  
  12069.   ANSI   DOS   OS/2   UNIX   XENIX
  12070.  
  12071.  
  12072.  
  12073.  fgetc
  12074.  ────────────────────────────────────────────────────────────────────────────
  12075.  
  12076.    int fgetc( FILE *stream );
  12077.  
  12078.  Include                           STDIO.H
  12079.  
  12080.  stream                            Pointer to target stream
  12081.  
  12082.  Returns                           The character read; EOF if an error
  12083.                                    occurred or at end-of-file
  12084.  
  12085.  Reads a character from stream.
  12086.  
  12087.   ANSI   DOS   OS/2   UNIX   XENIX
  12088.  
  12089.  
  12090.  
  12091.  fgetchar
  12092.  ────────────────────────────────────────────────────────────────────────────
  12093.  
  12094.    int fgetchar( void );
  12095.  
  12096.  Include                           STDIO.H
  12097.  
  12098.  Returns                           The character read; EOF if an error
  12099.                                    occurred or at end-of-file
  12100.  
  12101.  Reads a character from the standard input stream, stdin.
  12102.  
  12103.   ANSI   DOS   OS/2   UNIX   XENIX
  12104.  
  12105.  
  12106.  
  12107.  fgetpos
  12108.  ────────────────────────────────────────────────────────────────────────────
  12109.  
  12110.    int fgetpos( FILE *stream, fpos_t *pos );
  12111.  
  12112.  Include                           STDIO.H, ERRNO.H
  12113.  
  12114.  stream                            Pointer to target stream
  12115.  
  12116.  pos                               Position-indicator buffer
  12117.  
  12118.  Returns                           0 if successful; a nonzero value if not
  12119.  
  12120.  errno                             EBADF, EINVAL
  12121.  
  12122.  Gets the current value of the stream file-position indicator.
  12123.  
  12124.   ANSI   DOS   OS/2   UNIX   XENIX
  12125.  
  12126.  
  12127.  
  12128.  fgets
  12129.  ────────────────────────────────────────────────────────────────────────────
  12130.  
  12131.    char *fgets( char *string, int n, FILE *stream );
  12132.  
  12133.  Include                           STDIO.H
  12134.  
  12135.  string                            Storage location for data
  12136.  
  12137.  n                                 Maximum number of characters read and
  12138.                                    stored
  12139.  
  12140.  stream                            Pointer to target stream
  12141.  
  12142.  Returns                           string if successful; NULL to indicate
  12143.                                    an error or end-of-file
  12144.  
  12145.  Reads a string of, at most, n characters from the input stream and stores it
  12146.  in string.
  12147.  
  12148.   ANSI   DOS   OS/2   UNIX   XENIX
  12149.  
  12150.  
  12151.  
  12152.  _fheapchk
  12153.  ────────────────────────────────────────────────────────────────────────────
  12154.  
  12155.    int _fheapchk( void );
  12156.  
  12157.  Include                           MALLOC.H
  12158.  
  12159.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  12160.                                    _HEAPBADNODE
  12161.  
  12162.  Checks for minimal consistency in the far heap.
  12163.  
  12164.   ANSI   DOS   OS/2   UNIX   XENIX
  12165.  
  12166.  
  12167.  
  12168.  _fheapmin
  12169.  ────────────────────────────────────────────────────────────────────────────
  12170.  
  12171.    int _fheapmin( void );
  12172.  
  12173.  Include                           MALLOC.H
  12174.  
  12175.  Returns                           0 if successful; -1 if not
  12176.  
  12177.  Releases unused memory in the far heap back to the operating system.
  12178.  
  12179.   ANSI   DOS   OS/2   UNIX   XENIX
  12180.  
  12181.  
  12182.  
  12183.  _fheapset
  12184.  ────────────────────────────────────────────────────────────────────────────
  12185.  
  12186.    int _fheapset( unsigned int fill );
  12187.  
  12188.  Include                           MALLOC.H
  12189.  
  12190.  fill                              Fill character
  12191.  
  12192.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  12193.                                    _HEAPBADNODE
  12194.  
  12195.  Checks for minimal consistency in the far heap and then sets the heap's free
  12196.  entries with the fill value.
  12197.  
  12198.   ANSI   DOS   OS/2   UNIX   XENIX
  12199.  
  12200.  
  12201.  
  12202.  _fheapwalk
  12203.  ────────────────────────────────────────────────────────────────────────────
  12204.  
  12205.    int _fheapwalk( _HEAPINFO *entryinfo );
  12206.  
  12207.  Include                           MALLOC.H
  12208.  
  12209.  entryinfo                         Structure to contain information about
  12210.                                    the next far heap entry,
  12211.                                    defined in MALLOC.H
  12212.  
  12213.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADPTR,
  12214.                                     _HEAPBADBEGIN, _HEAPBADNODE, _HEAPEND
  12215.  
  12216.  Walks through the far heap, one entry per call, returning a pointer to a
  12217.  _HEAPINFO structure that contains information about the next far heap entry.
  12218.  
  12219.  
  12220.   ANSI   DOS   OS/2   UNIX   XENIX
  12221.  
  12222.  
  12223.  
  12224.  fieeetomsbin
  12225.  ────────────────────────────────────────────────────────────────────────────
  12226.  
  12227.    int fieeetomsbin( float *src4, float *dst4 );
  12228.  
  12229.  Include                           MATH.H
  12230.  
  12231.  src4                              Value to convert
  12232.  
  12233.  dst4                              Buffer for converted value
  12234.  
  12235.  Returns                           0 if successful; 1 if the conversion
  12236.                                    causes an overflow
  12237.  
  12238.  Converts a single-precision floating-point number in IEEE format to
  12239.  Microsoft binary format.
  12240.  
  12241.   ANSI   DOS   OS/2   UNIX   XENIX
  12242.  
  12243.  
  12244.  
  12245.  filelength
  12246.  ────────────────────────────────────────────────────────────────────────────
  12247.  
  12248.    long filelength( int handle );
  12249.  
  12250.  Include                           IO.H, ERRNO.H
  12251.  
  12252.  handle                            Target file handle
  12253.  
  12254.  Returns                           The file length in bytes if successful;
  12255.                                    -1 if not
  12256.  
  12257.  errno                             EBADF
  12258.  
  12259.  Gets the length in bytes of a file.
  12260.  
  12261.   ANSI   DOS   OS/2   UNIX   XENIX
  12262.  
  12263.  
  12264.  
  12265.  fileno
  12266.  ────────────────────────────────────────────────────────────────────────────
  12267.  
  12268.    int fileno( FILE *stream );
  12269.  
  12270.  Include                           STDIO.H
  12271.  
  12272.  stream                            Pointer to target stream
  12273.  
  12274.  Returns                           The file handle
  12275.  
  12276.  Returns the file handle currently associated with stream.
  12277.  
  12278.   ANSI   DOS   OS/2   UNIX   XENIX
  12279.  
  12280.  
  12281.  
  12282.  _floodfill
  12283.  ────────────────────────────────────────────────────────────────────────────
  12284.  
  12285.    short _far _floodfill( short x, short y, short boundary );
  12286.  
  12287.  Include                           GRAPH.H
  12288.  
  12289.  x, y                              Starting point
  12290.  
  12291.  boundary                          Fill boundary color
  12292.  
  12293.  Returns                           A nonzero value if successful; 0 if the
  12294.                                    fill could not be completed, the
  12295.                                    starting point lies on the boundary
  12296.                                    color, or the starting point lies
  12297.                                    outside the clipping region
  12298.  
  12299.  Fills an area of the display beginning at the view coordinate point using
  12300.  the current color and fill mask.
  12301.  
  12302.   ANSI   DOS   OS/2   UNIX   XENIX
  12303.  
  12304.  
  12305.  
  12306.  _floodfill_w
  12307.  ────────────────────────────────────────────────────────────────────────────
  12308.  
  12309.    short _far _floodfill_w( double wx, double wy, short boundary );
  12310.  
  12311.  Include                           GRAPH.H
  12312.  
  12313.  wx, wy                            Starting point
  12314.  
  12315.  boundary                          Fill boundary color
  12316.  
  12317.  Returns                           A nonzero value if successful; 0 if the
  12318.                                    fill could not be completed, the
  12319.                                    starting point lies on the boundary
  12320.                                    color, or the starting point lies
  12321.                                    outside the clipping region
  12322.  
  12323.  Fills an area of the window using the current color and fill mask.
  12324.  
  12325.   ANSI   DOS   OS/2   UNIX   XENIX
  12326.  
  12327.  
  12328.  
  12329.  floor
  12330.  ────────────────────────────────────────────────────────────────────────────
  12331.  
  12332.    double floor( double x );
  12333.  
  12334.  Include                           MATH.H
  12335.  
  12336.  x                                 Floating-point value
  12337.  
  12338.  Returns                           The floating-point result
  12339.  
  12340.  Returns a floating-point value representing the largest integer that is less
  12341.  than or equal to x.
  12342.  
  12343.   ANSI   DOS   OS/2   UNIX   XENIX
  12344.  
  12345.  
  12346.  
  12347.  floorl
  12348.  ────────────────────────────────────────────────────────────────────────────
  12349.  
  12350.    long double floorl( long double x );
  12351.  
  12352.  Include                           MATH.H
  12353.  
  12354.  x                                 Long double-precision floating-point
  12355.                                    value
  12356.  
  12357.  Returns                           Long double-precision floating-point
  12358.                                    result, rounded down
  12359.  
  12360.  Returns a long double-precision floating-point value representing the
  12361.  largest integer that is less than or equal to x.
  12362.  
  12363.   ANSI   DOS   OS/2   UNIX   XENIX
  12364.  
  12365.  
  12366.  
  12367.  flushall
  12368.  ────────────────────────────────────────────────────────────────────────────
  12369.  
  12370.    int flushall( void );
  12371.  
  12372.  Include                           STDIO.H
  12373.  
  12374.  Returns                           The number of open streams
  12375.  
  12376.  Writes the contents of all buffers for open output streams to their files
  12377.  and clears all buffers for open input streams of their contents.
  12378.  
  12379.   ANSI   DOS   OS/2   UNIX   XENIX
  12380.  
  12381.  
  12382.  
  12383.  _fmalloc
  12384.  ────────────────────────────────────────────────────────────────────────────
  12385.  
  12386.    void _far *_fmalloc( size_t size );
  12387.  
  12388.  Include                           MALLOC.H
  12389.  
  12390.  size                              Number of bytes to allocate
  12391.  
  12392.  Returns                           A far pointer to the allocated space;
  12393.                                    NULL if it fails
  12394.  
  12395.  Allocates a memory block of at least size bytes in the far heap.
  12396.  
  12397.   ANSI   DOS   OS/2   UNIX   XENIX
  12398.  
  12399.  
  12400.  
  12401.  _fmemccpy
  12402.  ────────────────────────────────────────────────────────────────────────────
  12403.  
  12404.    void _far * _far _fmemccpy( void _far *dest, void _far *src, int c,
  12405.    unsigned int count );
  12406.  
  12407.  Include                           STRING.H or MEMORY.H
  12408.  
  12409.  dest                              Far pointer to destination
  12410.  
  12411.  src                               Far pointer to source
  12412.  
  12413.  c                                 Last character to copy
  12414.  
  12415.  count                             Number of characters
  12416.  
  12417.  Returns                           A far pointer to the byte in dest that
  12418.                                    immediately follows the copied character
  12419.                                    (c) if successful; NULL if count bytes
  12420.                                    copied before c was found
  12421.  
  12422.  Copies zero or more far bytes of src to dest, copying up to and including
  12423.  the first occurrence of the character c or until count bytes have been
  12424.  copied, whichever comes first. Model-independent version of memccpy.
  12425.  
  12426.   ANSI   DOS   OS/2   UNIX   XENIX
  12427.  
  12428.  
  12429.  
  12430.  _fmemchr
  12431.  ────────────────────────────────────────────────────────────────────────────
  12432.  
  12433.    void _far * _far _fmemchr( const void _far *buf, int c, size_t count );
  12434.  
  12435.  Include                           STRING.H or MEMORY.H
  12436.  
  12437.  buf                               Far pointer to buffer
  12438.  
  12439.  c                                 Character to copy
  12440.  
  12441.  count                             Number of characters
  12442.  
  12443.  Returns                           A far pointer to the first location of c
  12444.                                    in buf if successful; NULL
  12445.                                    if not
  12446.  
  12447.  Looks for the first occurrence of c in the first count bytes of buf.
  12448.  Model-independent version of _memchr.
  12449.  
  12450.   ANSI   DOS   OS/2   UNIX   XENIX
  12451.  
  12452.  
  12453.  
  12454.  _fmemcmp
  12455.  ────────────────────────────────────────────────────────────────────────────
  12456.  
  12457.    int _far _fmemcmp( const void _far *buf1, const void _far *buf2, size_t
  12458.    count );
  12459.  
  12460.  Include                           STRING.H or MEMORY.H
  12461.  
  12462.  buf1, buf2                        Far pointers to buffers to compare
  12463.  
  12464.  count                             Number of characters
  12465.  
  12466.  Returns                           A value less than, equal to, or greater
  12467.                                    than 0, depending on whether the size of
  12468.                                    the buffer pointed to by buf1 is less
  12469.                                    than, equal to, or greater than the size
  12470.                                    of the buffer pointed to by buf2
  12471.  
  12472.  Compares the first count bytes of two buffers and returns a value indicating
  12473.  their relationship. Model-independent version of memcmp.
  12474.  
  12475.   ANSI   DOS   OS/2   UNIX   XENIX
  12476.  
  12477.  
  12478.  
  12479.  _fmemcpy
  12480.  ────────────────────────────────────────────────────────────────────────────
  12481.  
  12482.    void _far * _far _fmemcpy( void _far *dest, const void _far *src, size_t
  12483.    count );
  12484.  
  12485.  Include                           STRING.H or MEMORY.H
  12486.  
  12487.  dest                              Far pointer to the destination buffer
  12488.  
  12489.  src                               Far pointer to the buffer to copy from
  12490.  
  12491.  count                             Number of characters to copy
  12492.  
  12493.  Returns                           dest
  12494.  
  12495.  Copies count bytes of src to dest. Model-independent version of memcpy.
  12496.  
  12497.   ANSI   DOS   OS/2   UNIX   XENIX
  12498.  
  12499.  
  12500.  
  12501.  _fmemicmp
  12502.  ────────────────────────────────────────────────────────────────────────────
  12503.  
  12504.    int _far _fmemicmp( void _far *buf1, void _far *buf2, unsigned int count
  12505.    );
  12506.  
  12507.  Include                           STRING.H or MEMORY.H
  12508.  
  12509.  buf1, buf2                        Far pointers to buffers to compare
  12510.  
  12511.  count                             Number of characters
  12512.  
  12513.  Returns                           A value less than, equal to, or greater
  12514.                                    than 0, depending on whether the size of
  12515.                                    the buffer pointed to by buf1 is less
  12516.                                    than, equal to, or greater than the size
  12517.                                    of the buffer pointed to by buf2
  12518.  
  12519.  Compares a specified number of characters from two buffers without regard to
  12520.  letter case. Model-independent version of memicmp.
  12521.  
  12522.   ANSI   DOS   OS/2   UNIX   XENIX
  12523.  
  12524.  
  12525.  
  12526.  _fmemmove
  12527.  ────────────────────────────────────────────────────────────────────────────
  12528.  
  12529.    void _far * _far _fmemmove( void _far *dest, const void _far *src, size_t
  12530.    count );
  12531.  
  12532.  Include                           STRING.H
  12533.  
  12534.  dest                              Far pointer to destination buffer
  12535.  
  12536.  src                               Far pointer to source buffer
  12537.  
  12538.  count                             Number of characters to copy
  12539.  
  12540.  Returns                           The value of dest
  12541.  
  12542.  Copies count characters from src to dest. Model-independent version of
  12543.  memmove.
  12544.  
  12545.   ANSI   DOS   OS/2   UNIX   XENIX
  12546.  
  12547.  
  12548.  
  12549.  _fmemset
  12550.  ────────────────────────────────────────────────────────────────────────────
  12551.  
  12552.    void _far * _far _fmemset( void _far *dest, int c, size_t count );
  12553.  
  12554.  Include                           STRING.H or MEMORY.H
  12555.  
  12556.  dest                              Far pointer to destination
  12557.  
  12558.  c                                 Character to set
  12559.  
  12560.  count                             Number of characters
  12561.  
  12562.  Returns                           A far pointer to dest
  12563.  
  12564.  Sets the first count bytes of dest to the character c. Model-independent
  12565.  version of memset.
  12566.  
  12567.   ANSI   DOS   OS/2   UNIX   XENIX
  12568.  
  12569.  
  12570.  
  12571.  fmod
  12572.  ────────────────────────────────────────────────────────────────────────────
  12573.  
  12574.    double fmod( double x, double y );
  12575.  
  12576.  Include                           MATH.H
  12577.  
  12578.  x, y                              Floating-point values
  12579.  
  12580.  Returns                           The floating-point remainder
  12581.  
  12582.  Calculates the floating-point remainder f of (x, y) such that x = i * y + f,
  12583.  where i is an integer, f has the same sign as x, and the absolute value of f
  12584.  is less than the absolute value of y.
  12585.  
  12586.   ANSI   DOS   OS/2   UNIX   XENIX
  12587.  
  12588.  
  12589.  
  12590.  fmodl
  12591.  ────────────────────────────────────────────────────────────────────────────
  12592.  
  12593.    long double fmodl( long double x, long double y );
  12594.  
  12595.  Include                           MATH.H
  12596.  
  12597.  x, y                              Floating-point values
  12598.  
  12599.  Returns                           The floating-point remainder
  12600.  
  12601.  Calculates the long double-precision floating-point remainder f of (x, y)
  12602.  such that x = i * y + f, where i is an integer, f has the same sign as x,
  12603.  and the absolute value of f is less than the absolute value of y. Long
  12604.  double-precision floating-point version of fmod.
  12605.  
  12606.   ANSI   DOS   OS/2   UNIX   XENIX
  12607.  
  12608.  
  12609.  
  12610.  fmsbintoieee
  12611.  ────────────────────────────────────────────────────────────────────────────
  12612.  
  12613.    int fmsbintoieee( float *src4, float *dst4 );
  12614.  
  12615.  Include                           MATH.H
  12616.  
  12617.  src4                              Value to convert
  12618.  
  12619.  dst4                              Buffer for converted value
  12620.  
  12621.  Returns                           0 if successful; 1 if the conversion
  12622.                                    causes an overflow
  12623.  
  12624.  Converts a floating-point number in Microsoft binary format to IEEE format.
  12625.  
  12626.  
  12627.   ANSI   DOS   OS/2   UNIX   XENIX
  12628.  
  12629.  
  12630.  
  12631.  _fmsize
  12632.  ────────────────────────────────────────────────────────────────────────────
  12633.  
  12634.    size_t _fmsize( void _far *memblock );
  12635.  
  12636.  Include                           MALLOC.H
  12637.  
  12638.  memblock                          Pointer to far memory block
  12639.  
  12640.  Returns                           An unsigned integer representing the
  12641.                                    size in bytes of the far-heap memory
  12642.                                    block allocated by a call to _fcalloc,
  12643.                                    _fmalloc, or _frealloc
  12644.  
  12645.  Returns the size of the memory block pointed to by memblock.
  12646.  
  12647.   ANSI   DOS   OS/2   UNIX   XENIX
  12648.  
  12649.  
  12650.  
  12651.  fopen
  12652.  ────────────────────────────────────────────────────────────────────────────
  12653.  
  12654.    FILE *fopen( const char *filename, const char *mode );
  12655.  
  12656.  Include                           STDIO.H
  12657.  
  12658.  filename                          Path name of file
  12659.  
  12660.  mode                              Access permissions: "r", "r+", "r+b",
  12661.                                    "r+t", "w", "w+", "w+b", "w+t", "a",
  12662.                                    "a+", "a+b", "a+t"
  12663.  
  12664.  Returns                           A pointer to the open file if
  12665.                                    successful; NULL if not
  12666.  
  12667.  Opens a specified file for stream I/O.
  12668.  
  12669.   ANSI   DOS   OS/2   UNIX   XENIX
  12670.  
  12671.  
  12672.  
  12673.  FP_OFF
  12674.  ────────────────────────────────────────────────────────────────────────────
  12675.  
  12676.    unsigned FP_OFF( void _far *address );
  12677.  
  12678.  Include                           DOS.H
  12679.  
  12680.  address                           Far pointer to memory address
  12681.  
  12682.  Returns                           An offset
  12683.  
  12684.  Sets or gets the offset portion of a far address.
  12685.  
  12686.   ANSI   DOS   OS/2   UNIX   XENIX
  12687.  
  12688.  
  12689.  
  12690.  _fpreset
  12691.  ────────────────────────────────────────────────────────────────────────────
  12692.  
  12693.    void _fpreset( void );
  12694.  
  12695.  Include                           FLOAT.H
  12696.  
  12697.  Returns                           No return value
  12698.  
  12699.  Reinitializes the floating-point math package.
  12700.  
  12701.   ANSI   DOS   OS/2   UNIX   XENIX
  12702.  
  12703.  
  12704.  
  12705.  fprintf
  12706.  ────────────────────────────────────────────────────────────────────────────
  12707.  
  12708.    int fprintf( FILE *stream, const char *format [[, argument]]... );
  12709.  
  12710.  Include                           STDIO.H
  12711.  
  12712.  stream                            Pointer to target stream
  12713.  
  12714.  format                            Format-control string
  12715.  
  12716.  argument                          Optional arguments
  12717.  
  12718.  Returns                           The number of characters printed if
  12719.                                    successful; a negative value if not
  12720.  
  12721.  Formats and prints a series of characters and values to the output stream.
  12722.  
  12723.   ANSI   DOS   OS/2   UNIX   XENIX
  12724.  
  12725.  
  12726.  
  12727.  FP_SEG
  12728.  ────────────────────────────────────────────────────────────────────────────
  12729.  
  12730.    unsigned FP_SEG( void _far *address );
  12731.  
  12732.  Include                           DOS.H
  12733.  
  12734.  address                           Far pointer to memory address
  12735.  
  12736.  Returns                           A segment
  12737.  
  12738.  Sets or gets the segment selector portion of a far address.
  12739.  
  12740.   ANSI   DOS   OS/2   UNIX   XENIX
  12741.  
  12742.  
  12743.  
  12744.  fputc
  12745.  ────────────────────────────────────────────────────────────────────────────
  12746.  
  12747.    int fputc( int c, FILE *stream );
  12748.  
  12749.  Include                           STDIO.H
  12750.  
  12751.  c                                 Character to be written
  12752.  
  12753.  stream                            Pointer to target stream
  12754.  
  12755.  Returns                           The character written if successful; EOF
  12756.                                    if not
  12757.  
  12758.  Writes a single character to the target stream.
  12759.  
  12760.   ANSI   DOS   OS/2   UNIX   XENIX
  12761.  
  12762.  
  12763.  
  12764.  fputchar
  12765.  ────────────────────────────────────────────────────────────────────────────
  12766.  
  12767.    int fputchar( int c );
  12768.  
  12769.  Include                           STDIO.H
  12770.  
  12771.  c                                 Character to be written
  12772.  
  12773.  Returns                           The character written if successful; EOF
  12774.                                    if not
  12775.  
  12776.  Writes a single character to the standard output stream, stdout.
  12777.  
  12778.   ANSI   DOS   OS/2   UNIX   XENIX
  12779.  
  12780.  
  12781.  
  12782.  fputs
  12783.  ────────────────────────────────────────────────────────────────────────────
  12784.  
  12785.    int fputs( const char *string, FILE *stream );
  12786.  
  12787.  Include                           STDIO.H
  12788.  
  12789.  string                            Output string
  12790.  
  12791.  stream                            Pointer to target stream
  12792.  
  12793.  Returns                           A nonnegative value if successful; EOF
  12794.                                    if not
  12795.  
  12796.  Copies a string to the target stream.
  12797.  
  12798.   ANSI   DOS   OS/2   UNIX   XENIX
  12799.  
  12800.  
  12801.  
  12802.  fread
  12803.  ────────────────────────────────────────────────────────────────────────────
  12804.  
  12805.    size_t fread( void *buffer, size_t size, size_t count, FILE *stream );
  12806.  
  12807.  Include                           STDIO.H
  12808.  
  12809.  buffer                            Storage location for data
  12810.  
  12811.  size                              Item size in bytes
  12812.  
  12813.  count                             Maximum number of items to be read
  12814.  
  12815.  stream                            Pointer to target stream
  12816.  
  12817.  Returns                           The number of items actually read, which
  12818.                                    may be less than count if an error
  12819.                                    occurs
  12820.  
  12821.  Reads up to count items of size bytes from the input stream and stores them
  12822.  in buffer.
  12823.  
  12824.   ANSI   DOS   OS/2   UNIX   XENIX
  12825.  
  12826.  
  12827.  
  12828.  _frealloc
  12829.  ────────────────────────────────────────────────────────────────────────────
  12830.  
  12831.    void _far *_frealloc( void _far *memblock, size_t size );
  12832.  
  12833.  Include                           MALLOC.H
  12834.  
  12835.  memblock                          Pointer to previously allocated far
  12836.                                    memory block
  12837.  
  12838.  size                              New size in bytes
  12839.  
  12840.  Returns                           A far pointer to the reallocated memory
  12841.                                    block if successful; NULL
  12842.                                    if not
  12843.  
  12844.  Changes the size of a previously allocated far memory block, possibly moving
  12845.  it.
  12846.  
  12847.   ANSI   DOS   OS/2   UNIX   XENIX
  12848.  
  12849.  
  12850.  
  12851.  free
  12852.  ────────────────────────────────────────────────────────────────────────────
  12853.  
  12854.    void free( void *memblock );
  12855.  
  12856.  Include                           STDLIB.H, MALLOC.H
  12857.  
  12858.  memblock                          Allocated memory block
  12859.  
  12860.  Returns                           No return value
  12861.  
  12862.  Frees a memory block previously allocated by calloc, malloc, or realloc.
  12863.  
  12864.   ANSI   DOS   OS/2   UNIX   XENIX
  12865.  
  12866.  
  12867.  
  12868.  _freect
  12869.  ────────────────────────────────────────────────────────────────────────────
  12870.  
  12871.    unsigned int _freect( size_t size );
  12872.  
  12873.  Include                           MALLOC.H
  12874.  
  12875.  size                              Item size in bytes
  12876.  
  12877.  Returns                           The number of items that can be
  12878.                                    allocated in the near heap
  12879.  
  12880.  Determines how much memory is available for dynamic memory allocation in the
  12881.  near heap by returning the number of times an item can be allocated.
  12882.  
  12883.   ANSI   DOS   OS/2   UNIX   XENIX
  12884.  
  12885.  
  12886.  
  12887.  freopen
  12888.  ────────────────────────────────────────────────────────────────────────────
  12889.  
  12890.    FILE *freopen( const char *filename, const char *mode, FILE *stream );
  12891.  
  12892.  Include                           STDIO.H
  12893.  
  12894.  filename                          Path name of new file
  12895.  
  12896.  mode                              Access permission: "r", "r+", "r+b",
  12897.                                    "r+t", "w", "w+", "w+b", "w+t", "a",
  12898.                                    "a+", "a+b", "a+t"
  12899.  
  12900.  stream                            Pointer to target stream
  12901.  
  12902.  Returns                           A pointer to the newly opened file if
  12903.                                    successful; NULL if not
  12904.  
  12905.  Closes the file currently associated with stream and reassigns stream to the
  12906.  file specified by filename.
  12907.  
  12908.   ANSI   DOS   OS/2   UNIX   XENIX
  12909.  
  12910.  
  12911.  
  12912.  frexp
  12913.  ────────────────────────────────────────────────────────────────────────────
  12914.  
  12915.    double frexp( double x, int *expptr );
  12916.  
  12917.  Include                           MATH.H
  12918.  
  12919.  x                                 Floating-point value
  12920.  
  12921.  expptr                            Pointer to stored integer exponent
  12922.  
  12923.  Returns                           The mantissa if successful; 0 if x is 0
  12924.  
  12925.  Breaks down the floating-point value (x) into a mantissa (m) and an exponent
  12926.  (n) such that the absolute value of m is greater than or equal to 0.5 and
  12927.  less than 1.0, and x = m * 2n.
  12928.  
  12929.   ANSI   DOS   OS/2   UNIX   XENIX
  12930.  
  12931.  
  12932.  
  12933.  frexpl
  12934.  ────────────────────────────────────────────────────────────────────────────
  12935.  
  12936.    long double frexpl( long double x, int *expptr );
  12937.  
  12938.  Include                           MATH.H
  12939.  
  12940.  x                                 Long double-precision floating-point
  12941.                                    value
  12942.  
  12943.  expptr                            Pointer to stored integer exponent
  12944.  
  12945.  Returns                           The mantissa if successful; 0 if x is 0
  12946.  
  12947.  Breaks down the long double-precision floating-point value (x) into a
  12948.  mantissa (m) and an exponent (n) such that the absolute value of m is
  12949.  greater than or equal to 0.5 and less than 1.0, and x = m * 2n. Long
  12950.  double-precision floating-point version of frexp.
  12951.  
  12952.   ANSI   DOS   OS/2   UNIX   XENIX
  12953.  
  12954.  
  12955.  
  12956.  fscanf
  12957.  ────────────────────────────────────────────────────────────────────────────
  12958.  
  12959.    int fscanf( FILE *stream, const char *format [[, argument]]... );
  12960.  
  12961.  Include                           STDIO.H
  12962.  
  12963.  stream                            Pointer to target stream
  12964.  
  12965.  format                            Format-control string
  12966.  
  12967.  argument                          Optional arguments
  12968.  
  12969.  Returns                           The number of fields that were
  12970.                                    successfully converted and assigned, or
  12971.                                    EOF for end-of-file
  12972.  
  12973.  Reads data from the current position of stream into the locations given by
  12974.  argument (if any).
  12975.  
  12976.   ANSI   DOS   OS/2   UNIX   XENIX
  12977.  
  12978.  
  12979.  
  12980.  fseek
  12981.  ────────────────────────────────────────────────────────────────────────────
  12982.  
  12983.    int fseek( FILE *stream, long offset, int origin );
  12984.  
  12985.  Include                           STDIO.H
  12986.  
  12987.  stream                            Pointer to target stream
  12988.  
  12989.  offset                            Number of bytes from origin
  12990.  
  12991.  origin                            Initial position: SEEK_CUR, SEEK_END,
  12992.                                    SEEK_SET
  12993.  
  12994.  Returns                           0 if successful; a nonzero value if not
  12995.  
  12996.  Moves the file-position indicator associated with stream to a new location
  12997.  that is offset bytes from origin. It has limited use in text mode.
  12998.  
  12999.   ANSI   DOS   OS/2   UNIX   XENIX
  13000.  
  13001.  
  13002.  
  13003.  fsetpos
  13004.  ────────────────────────────────────────────────────────────────────────────
  13005.  
  13006.    int fsetpos( FILE *stream, const fpos_t *pos );
  13007.  
  13008.  Include                           STDIO.H, ERRNO.H
  13009.  
  13010.  stream                            Pointer to target stream
  13011.  
  13012.  pos                               Position-indicator storage
  13013.  
  13014.  Returns                           0 if successful; a nonzero value if not
  13015.  
  13016.  errno                             EBADF, EINVAL
  13017.  
  13018.  Sets the file-position indicator for stream to the value of pos.
  13019.  
  13020.   ANSI   DOS   OS/2   UNIX   XENIX
  13021.  
  13022.  
  13023.  
  13024.  _fsopen
  13025.  ────────────────────────────────────────────────────────────────────────────
  13026.  
  13027.    FILE *_fsopen( const char *filename, const char *mode, int shflag )
  13028.  
  13029.  Include                           STDIO.H, SHARE.H
  13030.  
  13031.  filename                          File path name
  13032.  
  13033.  mode                              Access permissions: "r", "r+", "r+b",
  13034.                                    "r+t", "w", "w+", "w+b", "w+t", "a",
  13035.                                    "a+", "a+b", "a+t"
  13036.  
  13037.  shflag                            SH_COMPAT, SH_DENYRW, SH_DENYWR,
  13038.                                    SH_DENYRD, SH_DENYNO
  13039.  
  13040.  Returns                           A pointer to the stream if successful;
  13041.                                    NULL if not
  13042.  
  13043.  Opens a file as a stream and prepares it for shared reading and writing.
  13044.  
  13045.   ANSI   DOS   OS/2   UNIX   XENIX
  13046.  
  13047.  
  13048.  
  13049.  fstat
  13050.  ────────────────────────────────────────────────────────────────────────────
  13051.  
  13052.    int fstat( int handle, struct stat *buffer );
  13053.  
  13054.  Include                           SYS\TYPES.H, SYS\STAT.H, ERRNO.H
  13055.  
  13056.  handle                            Handle of open file
  13057.  
  13058.  buffer                            Pointer to structure to store results
  13059.  
  13060.  Returns                           0 if successful; -1 if not
  13061.  
  13062.  errno                             EBADF
  13063.  
  13064.  Gets information about the open file associated with handle and stores it in
  13065.  the structure that buffer points to.
  13066.  
  13067.   ANSI   DOS   OS/2   UNIX   XENIX
  13068.  
  13069.  
  13070.  
  13071.  _fstrcat
  13072.  ────────────────────────────────────────────────────────────────────────────
  13073.  
  13074.    char _far * _far _fstrcat( char _far *string1, const char _far *string2 );
  13075.  
  13076.  Include                           STRING.H
  13077.  
  13078.  string1                           Far pointer to destination string
  13079.  
  13080.  string2                           Far pointer to source string
  13081.  
  13082.  Returns                           A far pointer to the concatenated string
  13083.  
  13084.  Appends string2 to string1. Model-independent version of strcat.
  13085.  
  13086.   ANSI   DOS   OS/2   UNIX   XENIX
  13087.  
  13088.  
  13089.  
  13090.  _fstrchr
  13091.  ────────────────────────────────────────────────────────────────────────────
  13092.  
  13093.    char _far * _far _fstrchr( const char _far *string, int c );
  13094.  
  13095.  Include                           STRING.H
  13096.  
  13097.  string                            Far pointer to source string
  13098.  
  13099.  c                                 Character to be located
  13100.  
  13101.  Returns                           A far pointer to the first occurrence of
  13102.                                    c in string
  13103.  
  13104.  Searches for the first occurrence of c in string. Model-independent version
  13105.  of strchr.
  13106.  
  13107.   ANSI   DOS   OS/2   UNIX   XENIX
  13108.  
  13109.  
  13110.  
  13111.  _fstrcmp
  13112.  ────────────────────────────────────────────────────────────────────────────
  13113.  
  13114.    int _far _fstrcmp( const char _far *string1, const char _far *string2 );
  13115.  
  13116.  Include                           STRING.H
  13117.  
  13118.  string1, string2                  Far pointers to strings to compare
  13119.  
  13120.  Returns                           A value less than 0 if string1 < string2
  13121.                                    ; 0 if string1 = string2; a value
  13122.                                    greater than 0 if string1 > string2
  13123.  
  13124.  Compares two strings. Model-independent version of strcmp.
  13125.  
  13126.   ANSI   DOS   OS/2   UNIX   XENIX
  13127.  
  13128.  
  13129.  
  13130.  _fstrcpy
  13131.  ────────────────────────────────────────────────────────────────────────────
  13132.  
  13133.    char _far * _far _fstrcpy( char _far *string1, const char _far *string2 );
  13134.  
  13135.  Include                           STRING.H
  13136.  
  13137.  string1                           Far pointer to destination string
  13138.  
  13139.  string2                           Far pointer to source string
  13140.  
  13141.  Returns                           string1
  13142.  
  13143.  Copies string2 to string1. Model-independent version of strcpy.
  13144.  
  13145.   ANSI   DOS   OS/2   UNIX   XENIX
  13146.  
  13147.  
  13148.  
  13149.  _fstrcspn
  13150.  ────────────────────────────────────────────────────────────────────────────
  13151.  
  13152.    size_t _far _fstrcspn( const char _far *string1, const char _far *string2
  13153.    );
  13154.  
  13155.  Include                           STRING.H
  13156.  
  13157.  string1                           Far pointer to source string
  13158.  
  13159.  string2                           Far pointer to character set
  13160.  
  13161.  Returns                           The index of the first character in
  13162.                                    string1 that belongs to the set of
  13163.                                    characters specified by string2
  13164.  
  13165.  Finds first substring in string1 consisting of characters not in string2.
  13166.  Model-independent version of strcspn.
  13167.  
  13168.   ANSI   DOS   OS/2   UNIX   XENIX
  13169.  
  13170.  
  13171.  
  13172.  _fstrdup
  13173.  ────────────────────────────────────────────────────────────────────────────
  13174.  
  13175.    char _far * _far _fstrdup( const char _far *string );
  13176.  
  13177.  Include                           STRING.H
  13178.  
  13179.  string                            Far pointer to source string
  13180.  
  13181.  Returns                           A far pointer to the storage space
  13182.                                    containing the duplicate string
  13183.  
  13184.  Duplicates string, copying it to memory allocated by _fmalloc.
  13185.  Model-independent version of strdup.
  13186.  
  13187.   ANSI   DOS   OS/2   UNIX   XENIX
  13188.  
  13189.  
  13190.  
  13191.  _fstricmp
  13192.  ────────────────────────────────────────────────────────────────────────────
  13193.  
  13194.    int _far _fstricmp( const char _far *string1, const char _far *string2 );
  13195.  
  13196.  Include                           STRING.H
  13197.  
  13198.  string1, string2                  Far pointers to strings to compare
  13199.  
  13200.  Returns                           A value less than 0 if string1 < string2
  13201.                                    ; 0 if string1 = string2; a value
  13202.                                    greater than 0 if string1 > string2
  13203.  
  13204.  Compares two strings without regard to case. Model-independent version of
  13205.  stricmp.
  13206.  
  13207.   ANSI   DOS   OS/2   UNIX   XENIX
  13208.  
  13209.  
  13210.  
  13211.  _fstrlen
  13212.  ────────────────────────────────────────────────────────────────────────────
  13213.  
  13214.    size_t _fstrlen( const char _far *string );
  13215.  
  13216.  Include                           STRING.H
  13217.  
  13218.  string                            Far pointer to null-terminated string
  13219.  
  13220.  Returns                           The length in bytes of string, not
  13221.                                    including the terminating null
  13222.                                    character ('\0')
  13223.  
  13224.  Finds length of string. Model-independent version of strlen.
  13225.  
  13226.   ANSI   DOS   OS/2   UNIX   XENIX
  13227.  
  13228.  
  13229.  
  13230.  _fstrlwr
  13231.  ────────────────────────────────────────────────────────────────────────────
  13232.  
  13233.    char _far * _far _fstrlwr( char _far *string );
  13234.  
  13235.  Include                           STRING.H
  13236.  
  13237.  string                            Far pointer to string to be converted
  13238.  
  13239.  Returns                           A far pointer to the converted string
  13240.  
  13241.  Converts any uppercase letters in the given null-terminated string to
  13242.  lowercase. Other characters are not affected. Model-independent version of
  13243.  strlwr.
  13244.  
  13245.   ANSI   DOS   OS/2   UNIX   XENIX
  13246.  
  13247.  
  13248.  
  13249.  _fstrncat
  13250.  ────────────────────────────────────────────────────────────────────────────
  13251.  
  13252.    char _far * _far _fstrncat( char _far *string1, const char _far *string2,
  13253.    size_t count );
  13254.  
  13255.  Include                           STRING.H
  13256.  
  13257.  string1                           Far pointer to destination string
  13258.  
  13259.  string2                           Far pointer to source string
  13260.  
  13261.  count                             Number of characters appended
  13262.  
  13263.  Returns                           A far pointer to the concatenated string
  13264.  
  13265.  Appends, at most, the first count characters of string2 to string1 and
  13266.  terminates the resulting string with a null character ('\0').
  13267.  Model-independent version of strncat.
  13268.  
  13269.   ANSI   DOS   OS/2   UNIX   XENIX
  13270.  
  13271.  
  13272.  
  13273.  _fstrncmp
  13274.  ────────────────────────────────────────────────────────────────────────────
  13275.  
  13276.    int _far _fstrncmp( const char _far *string1, const char _far *string2,
  13277.    size_t count );
  13278.  
  13279.  Include                           STRING.H
  13280.  
  13281.  string1, string2                  Far pointers to strings to compare
  13282.  
  13283.  count                             Number of characters compared
  13284.  
  13285.  Returns                           A value less than 0 if string1 < string2
  13286.                                    ; 0 if string1 = string2; a value
  13287.                                    greater than 0 if string1 > string2
  13288.  
  13289.  Compares, at most, the first count characters of string1 and string2.
  13290.  Model-independent version of strncmp.
  13291.  
  13292.   ANSI   DOS   OS/2   UNIX   XENIX
  13293.  
  13294.  
  13295.  
  13296.  _fstrncpy
  13297.  ────────────────────────────────────────────────────────────────────────────
  13298.  
  13299.    char _far * _far _fstrncpy( char _far *string1, const char _far *string2,
  13300.    size_t count );
  13301.  
  13302.  Include                           STRING.H
  13303.  
  13304.  string1                           Far pointer to destination string
  13305.  
  13306.  string2                           Far pointer to source string
  13307.  
  13308.  count                             Number of characters copied
  13309.  
  13310.  Returns                           string1
  13311.  
  13312.  Copies exactly count characters of string2 to string1. Model-independent
  13313.  version of strncpy.
  13314.  
  13315.   ANSI   DOS   OS/2   UNIX   XENIX
  13316.  
  13317.  
  13318.  
  13319.  _fstrnicmp
  13320.  ────────────────────────────────────────────────────────────────────────────
  13321.  
  13322.    int _far _fstrnicmp( const char _far *string1, const char _far *string2,
  13323.    size_t count );
  13324.  
  13325.  Include                           STRING.H
  13326.  
  13327.  string1, string2                  Far pointers to strings to compare
  13328.  
  13329.  count                             Number of characters compared
  13330.  
  13331.  Returns                           A value less than 0 if string1 < string2
  13332.                                    ; 0 if string1 = string2; a value
  13333.                                    greater than 0 if string1 > string2
  13334.  
  13335.  Compares, at most, the first count characters of string1 and string2,
  13336.  without regard to letter case. Model-independent version of strnicmp.
  13337.  
  13338.   ANSI   DOS   OS/2   UNIX   XENIX
  13339.  
  13340.  
  13341.  
  13342.  _fstrnset
  13343.  ────────────────────────────────────────────────────────────────────────────
  13344.  
  13345.    char _far * _far _fstrnset( char _far *string, int c, size_t count );
  13346.  
  13347.  Include                           STRING.H
  13348.  
  13349.  string                            Far pointer to string to be initialized
  13350.  
  13351.  c                                 Character setting
  13352.  
  13353.  count                             Number of characters set
  13354.  
  13355.  Returns                           A far pointer to the altered string
  13356.  
  13357.  Sets, at most, the first count characters of string to the character c.
  13358.  Model-independent version of strnset.
  13359.  
  13360.   ANSI   DOS   OS/2   UNIX   XENIX
  13361.  
  13362.  
  13363.  
  13364.  _fstrpbrk
  13365.  ────────────────────────────────────────────────────────────────────────────
  13366.  
  13367.    char _far * _far _fstrpbrk( const char _far *string1, const char _far
  13368.    *string2 );
  13369.  
  13370.  Include                           STRING.H
  13371.  
  13372.  string1                           Far pointer to source string
  13373.  
  13374.  string2                           Far pointer to character set
  13375.  
  13376.  Returns                           A far pointer to the first occurrence of
  13377.                                    any character from string2 in string1
  13378.  
  13379.  Finds the first occurrence of a character from one string in another.
  13380.  Model-independent version of strpbrk.
  13381.  
  13382.   ANSI   DOS   OS/2   UNIX   XENIX
  13383.  
  13384.  
  13385.  
  13386.  _fstrrchr
  13387.  ────────────────────────────────────────────────────────────────────────────
  13388.  
  13389.    char _far * _far _fstrrchr( const char _far *string, int c );
  13390.  
  13391.  Include                           STRING.H
  13392.  
  13393.  string                            Far pointer to searched string
  13394.  
  13395.  c                                 Character to be located
  13396.  
  13397.  Returns                           A far pointer to the last occurrence of
  13398.                                    c in string
  13399.  
  13400.  Finds the last occurrence of a given character in a string.
  13401.  Model-independent version of strrchr.
  13402.  
  13403.   ANSI   DOS   OS/2   UNIX   XENIX
  13404.  
  13405.  
  13406.  
  13407.  _fstrrev
  13408.  ────────────────────────────────────────────────────────────────────────────
  13409.  
  13410.    char _far * _far _fstrrev( char _far *string );
  13411.  
  13412.  Include                           STRING.H
  13413.  
  13414.  string                            Far pointer to string to be reversed
  13415.  
  13416.  Returns                           A far pointer to the altered string
  13417.  
  13418.  Reverses the order of the characters in string. The terminating null
  13419.  character ('\0') remains in place. Model-independent version of strrev.
  13420.  
  13421.   ANSI   DOS   OS/2   UNIX   XENIX
  13422.  
  13423.  
  13424.  
  13425.  _fstrset
  13426.  ────────────────────────────────────────────────────────────────────────────
  13427.  
  13428.    char _far * _far _fstrset( char _far *string, int c );
  13429.  
  13430.  Include                           STRING.H
  13431.  
  13432.  string                            Far pointer to string to be set
  13433.  
  13434.  c                                 Far pointer to character setting
  13435.  
  13436.  Returns                           A far pointer to the altered string
  13437.  
  13438.  Sets all of the characters of string to c, except the terminating null
  13439.  character ('\0'). Model-independent version of strset.
  13440.  
  13441.   ANSI   DOS   OS/2   UNIX   XENIX
  13442.  
  13443.  
  13444.  
  13445.  _fstrspn
  13446.  ────────────────────────────────────────────────────────────────────────────
  13447.  
  13448.    size_t _far _fstrspn( const char _far *string1, const char _far *string2
  13449.    );
  13450.  
  13451.  Include                           STRING.H
  13452.  
  13453.  string1                           Far pointer to searched string
  13454.  
  13455.  string2                           Far pointer to character set
  13456.  
  13457.  Returns                           An integer value specifying the length
  13458.                                    of the segment in string1 consisting
  13459.                                    entirely of characters in string2
  13460.  
  13461.  Returns the index of the first character in string1 that does not belong to
  13462.  the set of characters specified by string2. This value is equivalent to the
  13463.  length of the initial substring of string1 that consists entirely of
  13464.  characters from string2. Model-independent version of strspn.
  13465.  
  13466.   ANSI   DOS   OS/2   UNIX   XENIX
  13467.  
  13468.  
  13469.  
  13470.  _fstrstr
  13471.  ────────────────────────────────────────────────────────────────────────────
  13472.  
  13473.    char _far * _far _fstrstr( const char _far *string1, const char _far
  13474.    *string2 );
  13475.  
  13476.  Include                           STRING.H
  13477.  
  13478.  string1                           Far pointer to searched string
  13479.  
  13480.  string2                           Far pointer to string to search for
  13481.  
  13482.  Returns                           A far pointer to the first occurrence of
  13483.                                    string2 in string1
  13484.  
  13485.  Finds the first occurrence of a given string in another string.
  13486.  Model-independent version of strstr.
  13487.  
  13488.   ANSI   DOS   OS/2   UNIX   XENIX
  13489.  
  13490.  
  13491.  
  13492.  _fstrtok
  13493.  ────────────────────────────────────────────────────────────────────────────
  13494.  
  13495.    char _far * _far _fstrtok( char _far *string1, const char _far *string2 );
  13496.  
  13497.  Include                           STRING.H
  13498.  
  13499.  string1                           Far pointer to string containing token(s)
  13500.  
  13501.  string2                           Far pointer to set of delimiter
  13502.                                    characters
  13503.  
  13504.  Returns                           A far pointer to the first token in
  13505.                                    string1; successive calls against the
  13506.                                    same string return the subsequent tokens
  13507.                                    in the string
  13508.  
  13509.  Reads string1 as a series of zero or more tokens and string2 as the set of
  13510.  characters serving as delimiters of the tokens in string1. Model-independent
  13511.  version of strtok.
  13512.  
  13513.   ANSI   DOS   OS/2   UNIX   XENIX
  13514.  
  13515.  
  13516.  
  13517.  _fstrupr
  13518.  ────────────────────────────────────────────────────────────────────────────
  13519.  
  13520.    char _far * _far _fstrupr( char _far *string );
  13521.  
  13522.  Include                           STRING.H
  13523.  
  13524.  string                            Far pointer to string to be capitalized
  13525.  
  13526.  Returns                           A far pointer to the converted string
  13527.  
  13528.  Converts any lowercase letters in string to uppercase. Other characters are
  13529.  not affected. Model-independent version of strupr.
  13530.  
  13531.   ANSI   DOS   OS/2   UNIX   XENIX
  13532.  
  13533.  
  13534.  
  13535.  ftell
  13536.  ────────────────────────────────────────────────────────────────────────────
  13537.  
  13538.    long ftell( FILE *stream );
  13539.  
  13540.  Include                           STDIO.H, ERRNO.H
  13541.  
  13542.  stream                            Pointer to target stream
  13543.  
  13544.  Returns                           The current position if successful; -1L
  13545.                                    if not
  13546.  
  13547.  errno                             EBADF, EINVAL
  13548.  
  13549.  Gets the current position of the file-position indicator associated with
  13550.  stream. Use with fseek.
  13551.  
  13552.   ANSI   DOS   OS/2   UNIX   XENIX
  13553.  
  13554.  
  13555.  
  13556.  ftime
  13557.  ────────────────────────────────────────────────────────────────────────────
  13558.  
  13559.    void ftime( struct timeb *timeptr );
  13560.  
  13561.  Include                           SYS\TYPES.H, SYS\TIMEB.H
  13562.  
  13563.  timeptr                           Pointer to structure defined in
  13564.                                    SYS\TIMEB.H
  13565.  
  13566.  Returns                           No return value
  13567.  
  13568.  Gets the current time and stores it in the structure that timeptr points to.
  13569.  
  13570.  
  13571.   ANSI   DOS   OS/2   UNIX   XENIX
  13572.  
  13573.  
  13574.  
  13575.  _fullpath
  13576.  ────────────────────────────────────────────────────────────────────────────
  13577.  
  13578.    char *_fullpath( char *buffer, const char *pathname, size_t maxlen );
  13579.  
  13580.  Include                           STDLIB.H
  13581.  
  13582.  buffer                            Pointer to user path name buffer
  13583.  
  13584.  pathname                          Pointer to path name fragment
  13585.  
  13586.  maxlen                            Maximum length of buffer
  13587.  
  13588.  Returns                           A pointer to the absolute path in buffer
  13589.                                    if successful; NULL if not
  13590.  
  13591.  Expands the path name fragment pathname to form a fully qualified path that
  13592.  is stored in buffer.
  13593.  
  13594.   ANSI   DOS   OS/2   UNIX   XENIX
  13595.  
  13596.  
  13597.  
  13598.  fwrite
  13599.  ────────────────────────────────────────────────────────────────────────────
  13600.  
  13601.    size_t fwrite( const void *buffer, size_t size, size_t count, FILE *stream
  13602.    );
  13603.  
  13604.  Include                           STDIO.H
  13605.  
  13606.  buffer                            Pointer to data to be written
  13607.  
  13608.  size                              Item size in bytes
  13609.  
  13610.  count                             Maximum number of items to be written
  13611.  
  13612.  stream                            Pointer to target stream
  13613.  
  13614.  Returns                           The number of full items actually
  13615.                                    written, which may be less than count if
  13616.                                    an error occurs
  13617.  
  13618.  Writes up to count items of length size from buffer to the output stream.
  13619.  
  13620.   ANSI   DOS   OS/2   UNIX   XENIX
  13621.  
  13622.  
  13623.  
  13624.  gcvt
  13625.  ────────────────────────────────────────────────────────────────────────────
  13626.  
  13627.    char *gcvt( double value, int digits, char *buffer );
  13628.  
  13629.  Include                           STDLIB.H
  13630.  
  13631.  value                             Value to be converted
  13632.  
  13633.  digits                            Number of significant digits stored
  13634.  
  13635.  buffer                            Storage location for result
  13636.  
  13637.  Returns                           A pointer to the string of digits
  13638.  
  13639.  Converts a floating-point value to a character string and stores the string
  13640.  in buffer.
  13641.  
  13642.   ANSI   DOS   OS/2   UNIX   XENIX
  13643.  
  13644.  
  13645.  
  13646.  _getactivepage
  13647.  ────────────────────────────────────────────────────────────────────────────
  13648.  
  13649.    short _far _getactivepage( void );
  13650.  
  13651.  Include                           GRAPH.H
  13652.  
  13653.  Returns                           The number of the current active page
  13654.  
  13655.  Determines the current active page.
  13656.  
  13657.   ANSI   DOS   OS/2   UNIX   XENIX
  13658.  
  13659.  
  13660.  
  13661.  _getarcinfo
  13662.  ────────────────────────────────────────────────────────────────────────────
  13663.  
  13664.    short _far _getarcinfo( struct xycoord _far *start, struct xycoord _far
  13665.    *end,
  13666.    struct xycoord _far *fillpoint );
  13667.  
  13668.  Include                           GRAPH.H
  13669.  
  13670.  start                             Starting point of arc
  13671.  
  13672.  end                               Ending point of arc
  13673.  
  13674.  fillpoint                         Point to begin pie fill
  13675.  
  13676.  Returns                           A nonzero value if successful; 0 if not
  13677.  
  13678.  Finds the endpoints in viewport coordinates of the arc most recently drawn
  13679.  by _arc or _pie.
  13680.  
  13681.   ANSI   DOS   OS/2   UNIX   XENIX
  13682.  
  13683.  
  13684.  
  13685.  _getbkcolor
  13686.  ────────────────────────────────────────────────────────────────────────────
  13687.  
  13688.    long _far _getbkcolor( void );
  13689.  
  13690.  Include                           GRAPH.H
  13691.  
  13692.  Returns                           The current background color value
  13693.  
  13694.  Determines the current background color.
  13695.  
  13696.   ANSI   DOS   OS/2   UNIX   XENIX
  13697.  
  13698.  
  13699.  
  13700.  getc
  13701.  ────────────────────────────────────────────────────────────────────────────
  13702.  
  13703.    int getc( FILE *stream );
  13704.  
  13705.  Include                           STDIO.H
  13706.  
  13707.  stream                            Pointer to target stream
  13708.  
  13709.  Returns                           The character read if successful; EOF to
  13710.                                    indicate an error or
  13711.                                    end-of-file
  13712.  
  13713.  Reads a single character from the current stream position and increases the
  13714.  associated file-position indicator to point to the next character.
  13715.  
  13716.   ANSI   DOS   OS/2   UNIX   XENIX
  13717.  
  13718.  
  13719.  
  13720.  getch
  13721.  ────────────────────────────────────────────────────────────────────────────
  13722.  
  13723.    int getch( void );
  13724.  
  13725.  Include                           CONIO.H
  13726.  
  13727.  Returns                           The character read
  13728.  
  13729.  Reads without echoing a single character from the console.
  13730.  
  13731.   ANSI   DOS   OS/2   UNIX   XENIX
  13732.  
  13733.  
  13734.  
  13735.  getchar
  13736.  ────────────────────────────────────────────────────────────────────────────
  13737.  
  13738.    int getchar( void );
  13739.  
  13740.  Include                           STDIO.H
  13741.  
  13742.  Returns                           The character read if successful; EOF to
  13743.                                    indicate an error or
  13744.                                    end-of-file
  13745.  
  13746.  Reads a single character from the current standard input stream, stdin, and
  13747.  increases the associated file-position indicator to point to the next
  13748.  character.
  13749.  
  13750.   ANSI   DOS   OS/2   UNIX   XENIX
  13751.  
  13752.  
  13753.  
  13754.  getche
  13755.  ────────────────────────────────────────────────────────────────────────────
  13756.  
  13757.    int getche( void );
  13758.  
  13759.  Include                           CONIO.H
  13760.  
  13761.  Returns                           The character read
  13762.  
  13763.  Reads a single character from the console and echoes the character read.
  13764.  
  13765.   ANSI   DOS   OS/2   UNIX   XENIX
  13766.  
  13767.  
  13768.  
  13769.  _getcolor
  13770.  ────────────────────────────────────────────────────────────────────────────
  13771.  
  13772.    short _far _getcolor( void );
  13773.  
  13774.  Include                           GRAPH.H
  13775.  
  13776.  Returns                           The current color index
  13777.  
  13778.  Determines the current color.
  13779.  
  13780.   ANSI   DOS   OS/2   UNIX   XENIX
  13781.  
  13782.  
  13783.  
  13784.  _getcurrentposition
  13785.  ────────────────────────────────────────────────────────────────────────────
  13786.  
  13787.    struct xycoord _far _getcurrentposition( void );
  13788.  
  13789.  Include                           GRAPH.H
  13790.  
  13791.  Returns                           The current position as an xycoord
  13792.                                    structure defined in GRAPH.H
  13793.  
  13794.  Gets the current graphics output position in view coordinates.
  13795.  
  13796.   ANSI   DOS   OS/2   UNIX   XENIX
  13797.  
  13798.  
  13799.  
  13800.  _getcurrentposition_w
  13801.  ────────────────────────────────────────────────────────────────────────────
  13802.  
  13803.    struct _wxycoord _far _getcurrentposition_w( void );
  13804.  
  13805.  Include                           GRAPH.H
  13806.  
  13807.  Returns                           The current position as a _wxycoord
  13808.                                    structure defined in GRAPH.H
  13809.  
  13810.  Gets the current graphics output position in window coordinates.
  13811.  
  13812.   ANSI   DOS   OS/2   UNIX   XENIX
  13813.  
  13814.  
  13815.  
  13816.  getcwd
  13817.  ────────────────────────────────────────────────────────────────────────────
  13818.  
  13819.    char *getcwd( char *buffer, int maxlen );
  13820.  
  13821.  Include                           DIRECT.H, ERRNO.H
  13822.  
  13823.  buffer                            Storage location for path name
  13824.  
  13825.  maxlen                            Maximum length of path name
  13826.  
  13827.  Returns                           buffer if successful; NULL if not
  13828.  
  13829.  errno                             ENOMEM, ERANGE
  13830.  
  13831.  Gets the full path name (including disk drive specification) of the current
  13832.  working directory and stores it at buffer.
  13833.  
  13834.   ANSI   DOS   OS/2   UNIX   XENIX
  13835.  
  13836.  
  13837.  
  13838.  _getdcwd
  13839.  ────────────────────────────────────────────────────────────────────────────
  13840.  
  13841.    char *_getdcwd( int drive, char *buffer, int maxlen );
  13842.  
  13843.  Include                           DIRECT.H, ERRNO.H
  13844.  
  13845.  drive                             Disk drive (A: = 1, B: = 2)
  13846.  
  13847.  buffer                            Storage location for path name
  13848.  
  13849.  maxlen                            Maximum length of path name
  13850.  
  13851.  Returns                           buffer if successful; NULL if not
  13852.  
  13853.  errno                             ENOMEM, ERANGE
  13854.  
  13855.  Gets the full path name (including disk drive specification) of the current
  13856.  working directory on drive and stores it at buffer.
  13857.  
  13858.   ANSI   DOS   OS/2   UNIX   XENIX
  13859.  
  13860.  
  13861.  
  13862.  _getdrive
  13863.  ────────────────────────────────────────────────────────────────────────────
  13864.  
  13865.    int _getdrive( void );
  13866.  
  13867.  Include                           DIRECT.H
  13868.  
  13869.  Returns                           The integer indicating the current
  13870.                                    working drive (A: = 1, B: = 2)
  13871.  
  13872.  Gets the current working drive.
  13873.  
  13874.   ANSI   DOS   OS/2   UNIX   XENIX
  13875.  
  13876.  
  13877.  
  13878.  getenv
  13879.  ────────────────────────────────────────────────────────────────────────────
  13880.  
  13881.    char *getenv( const char *varname );
  13882.  
  13883.  Include                           STDLIB.H
  13884.  
  13885.  varname                           Name of environment variable
  13886.  
  13887.  Returns                           A pointer to the environment table entry
  13888.                                    containing the current string value of
  13889.                                    varname; NULL if the variable is not
  13890.                                    defined
  13891.  
  13892.  Searches the list of environment variables for an entry corresponding to
  13893.  varname.
  13894.  
  13895.   ANSI   DOS   OS/2   UNIX   XENIX
  13896.  
  13897.  
  13898.  
  13899.  _getfillmask
  13900.  ────────────────────────────────────────────────────────────────────────────
  13901.  
  13902.    unsigned char _far * _far _getfillmask( unsigned char _far *mask );
  13903.  
  13904.  Include                           GRAPH.H
  13905.  
  13906.  mask                              Mask array
  13907.  
  13908.  Returns                           NULL if no mask is set
  13909.  
  13910.  Returns the current fill mask used in the _floodfill, _pie, _ellipse,
  13911.  _polygon, and _rectangle functions.
  13912.  
  13913.   ANSI   DOS   OS/2   UNIX   XENIX
  13914.  
  13915.  
  13916.  
  13917.  _getfontinfo
  13918.  ────────────────────────────────────────────────────────────────────────────
  13919.  
  13920.    short _far _getfontinfo( struct _fontinfo _far *fontbuffer );
  13921.  
  13922.  Include                           GRAPH.H
  13923.  
  13924.  fontbuffer                        Font information
  13925.  
  13926.  Returns                           -1 if a font has not been registered or
  13927.                                    loaded
  13928.  
  13929.  Returns the current font characteristics in a _fontinfo structure defined in
  13930.  GRAPH.H.
  13931.  
  13932.   ANSI   DOS   OS/2   UNIX   XENIX
  13933.  
  13934.  
  13935.  
  13936.  _getgtextextent
  13937.  ────────────────────────────────────────────────────────────────────────────
  13938.  
  13939.    short _far _getgtextextent( unsigned char _far *text );
  13940.  
  13941.  Include                           GRAPH.H
  13942.  
  13943.  text                              Text to be analyzed
  13944.  
  13945.  Returns                           The width in pixels; -1 if a font has
  13946.                                    not been registered
  13947.  
  13948.  Returns the width required to print the text string in the current font,
  13949.  using _outgtext.
  13950.  
  13951.   ANSI   DOS   OS/2   UNIX   XENIX
  13952.  
  13953.  
  13954.  
  13955.  _getgtextvector
  13956.  ────────────────────────────────────────────────────────────────────────────
  13957.  
  13958.    short xycoord _far _getgtextvector( void );
  13959.  
  13960.  Include                           GRAPH.H
  13961.  
  13962.  Returns                           Vector determining the direction of font
  13963.                                    text rotation as an xycoord structure
  13964.                                    defined in GRAPH.H
  13965.  
  13966.  Finds the orientation for font text output by _setgtextvector.
  13967.  
  13968.   ANSI   DOS   OS/2   UNIX   XENIX
  13969.  
  13970.  
  13971.  
  13972.  _getimage
  13973.  ────────────────────────────────────────────────────────────────────────────
  13974.  
  13975.    void _far _getimage( short x1, short y1, short x2, short y2, char _huge
  13976.    *image );
  13977.  
  13978.  Include                           GRAPH.H
  13979.  
  13980.  x1, y1                            Upper left corner of bounding rectangle
  13981.  
  13982.  x2, y2                            Lower right corner of bounding rectangle
  13983.  
  13984.  image                             Storage buffer for screen image
  13985.  
  13986.  Returns                           No return value; check _grstatus
  13987.  
  13988.  Stores the screen image defined by a specified bounding rectangle into the
  13989.  buffer image.
  13990.  
  13991.   ANSI   DOS   OS/2   UNIX   XENIX
  13992.  
  13993.  
  13994.  
  13995.  _getimage_w
  13996.  ────────────────────────────────────────────────────────────────────────────
  13997.  
  13998.    void _far _getimage_w( double wx1, double wy1, double wx2, double wy2,
  13999.    char _huge *image );
  14000.  
  14001.  Include                           GRAPH.H
  14002.  
  14003.  wx1, wy1                          Upper left corner of bounding rectangle
  14004.  
  14005.  wx2, wy2                          Lower right corner of bounding rectangle
  14006.  
  14007.  image                             Storage buffer for screen image
  14008.  
  14009.  Returns                           No return value; check _grstatus
  14010.  
  14011.  Stores the screen image defined by a specified bounding rectangle into the
  14012.  buffer image. Defines the bounding rectangle with the window coordinates
  14013.  (wx1, wy1) and (wx2, wy2).
  14014.  
  14015.   ANSI   DOS   OS/2   UNIX   XENIX
  14016.  
  14017.  
  14018.  
  14019.  _getimage_wxy
  14020.  ────────────────────────────────────────────────────────────────────────────
  14021.  
  14022.    void _far _getimage_wxy( struct _wxycoord _far *pwxy1,
  14023.    struct _wxycoord _far *pwxy2, char _huge *image );
  14024.  
  14025.  Include                           GRAPH.H
  14026.  
  14027.  pwxy1                             Upper left corner of bounding rectangle
  14028.  
  14029.  pwxy2                             Lower right corner of bounding rectangle
  14030.  
  14031.  image                             Storage buffer for screen image
  14032.  
  14033.  Returns                           No return value; check _grstatus
  14034.  
  14035.  Stores the screen image defined by a specified bounding rectangle into the
  14036.  buffer image. Defines the bounding rectangle with the window coordinate
  14037.  pairs pwxy1 and pwxy2.
  14038.  
  14039.   ANSI   DOS   OS/2   UNIX   XENIX
  14040.  
  14041.  
  14042.  
  14043.  _getlinestyle
  14044.  ────────────────────────────────────────────────────────────────────────────
  14045.  
  14046.    unsigned short _far _getlinestyle( void );
  14047.  
  14048.  Include                           GRAPH.H
  14049.  
  14050.  Returns                           The default mask if no mask has been set
  14051.  
  14052.  Returns the current line-style mask, which is used by the _lineto, _polygon,
  14053.  and _rectangle functions.
  14054.  
  14055.   ANSI   DOS   OS/2   UNIX   XENIX
  14056.  
  14057.  
  14058.  
  14059.  _getphyscoord
  14060.  ────────────────────────────────────────────────────────────────────────────
  14061.  
  14062.    struct xycoord _far _getphyscoord( short x, short y );
  14063.  
  14064.  Include                           GRAPH.H
  14065.  
  14066.  x, y                              View coordinate to translate
  14067.  
  14068.  Returns                           The physical coordinates in an xycoord
  14069.                                    structure defined in GRAPH.H
  14070.  
  14071.  Translates the view coordinate (x, y) to physical coordinates, returning
  14072.  them in an xycoord structure.
  14073.  
  14074.   ANSI   DOS   OS/2   UNIX   XENIX
  14075.  
  14076.  
  14077.  
  14078.  getpid
  14079.  ────────────────────────────────────────────────────────────────────────────
  14080.  
  14081.    int getpid( void );
  14082.  
  14083.  Include                           PROCESS.H
  14084.  
  14085.  Returns                           The process identification
  14086.  
  14087.  Gets the identification number of the calling process.
  14088.  
  14089.   ANSI   DOS   OS/2   UNIX   XENIX
  14090.  
  14091.  
  14092.  
  14093.  _getpixel
  14094.  ────────────────────────────────────────────────────────────────────────────
  14095.  
  14096.    short _far _getpixel( short x, short y );
  14097.  
  14098.  Include                           GRAPH.H
  14099.  
  14100.  x, y                              Pixel location
  14101.  
  14102.  Returns                           The color index if successful; -1 if not
  14103.  
  14104.  Determines the pixel value at the location specified in viewport
  14105.  coordinates.
  14106.  
  14107.   ANSI   DOS   OS/2   UNIX   XENIX
  14108.  
  14109.  
  14110.  
  14111.  _getpixel_w
  14112.  ────────────────────────────────────────────────────────────────────────────
  14113.  
  14114.    short _far _getpixel_w( double wx, double wy );
  14115.  
  14116.  Include                           GRAPH.H
  14117.  
  14118.  wx, wy                            Pixel location
  14119.  
  14120.  Returns                           The color index if successful; -1 if not
  14121.  
  14122.  Determines the pixel value at the location specified in window coordinates.
  14123.  
  14124.  
  14125.   ANSI   DOS   OS/2   UNIX   XENIX
  14126.  
  14127.  
  14128.  
  14129.  gets
  14130.  ────────────────────────────────────────────────────────────────────────────
  14131.  
  14132.    char *gets( char *buffer );
  14133.  
  14134.  Include                           STDIO.H
  14135.  
  14136.  buffer                            Storage location for input string
  14137.  
  14138.  Returns                           The argument if successful; NULL if not,
  14139.                                    or if end-of-file is reached
  14140.  
  14141.  Reads a line from the standard input stream, stdin, and stores it at buffer.
  14142.  
  14143.  
  14144.   ANSI   DOS   OS/2   UNIX   XENIX
  14145.  
  14146.  
  14147.  
  14148.  _gettextcolor
  14149.  ────────────────────────────────────────────────────────────────────────────
  14150.  
  14151.    short _far _gettextcolor( void );
  14152.  
  14153.  Include                           GRAPH.H
  14154.  
  14155.  Returns                           Index of the current text color
  14156.  
  14157.  Determines the current text attribute.
  14158.  
  14159.   ANSI   DOS   OS/2   UNIX   XENIX
  14160.  
  14161.  
  14162.  
  14163.  _gettextcursor
  14164.  ────────────────────────────────────────────────────────────────────────────
  14165.  
  14166.    short _far _gettextcursor( void );
  14167.  
  14168.  Include                           GRAPH.H
  14169.  
  14170.  Returns                           The current cursor attribute if
  14171.                                    successful; -1 if not
  14172.  
  14173.  Determines the current cursor shape in text modes.
  14174.  
  14175.   ANSI   DOS   OS/2   UNIX   XENIX
  14176.  
  14177.  
  14178.  
  14179.  _gettextposition
  14180.  ────────────────────────────────────────────────────────────────────────────
  14181.  
  14182.    struct rccoord _far _gettextposition( void );
  14183.  
  14184.  Include                           GRAPH.H
  14185.  
  14186.  Returns                           The text position as an rccoord
  14187.                                    structure defined in GRAPH.H
  14188.  
  14189.  Gets the current text position as an rccoord structure.
  14190.  
  14191.   ANSI   DOS   OS/2   UNIX   XENIX
  14192.  
  14193.  
  14194.  
  14195.  _gettextwindow
  14196.  ────────────────────────────────────────────────────────────────────────────
  14197.  
  14198.    void _far _gettextwindow( short _far *r1, short _far *c1, short _far *r2,
  14199.    short _far *c2 );
  14200.  
  14201.  Include                           GRAPH.H
  14202.  
  14203.  r1                                Top row of current text window
  14204.  
  14205.  c1                                Leftmost column of current text window
  14206.  
  14207.  r2                                Bottom row of current text window
  14208.  
  14209.  c2                                Rightmost column of current text window
  14210.  
  14211.  Returns                           No return value
  14212.  
  14213.  Gets the boundaries of the current text window.
  14214.  
  14215.   ANSI   DOS   OS/2   UNIX   XENIX
  14216.  
  14217.  
  14218.  
  14219.  _getvideoconfig
  14220.  ────────────────────────────────────────────────────────────────────────────
  14221.  
  14222.    struct videoconfig _far * _far _getvideoconfig( struct videoconfig _far
  14223.    *config );
  14224.  
  14225.  Include                           GRAPH.H
  14226.  
  14227.  config                            Configuration information
  14228.  
  14229.  Returns                           The video configuration information in a
  14230.                                    videoconfig structure defined in GRAPH.H
  14231.  
  14232.  Gets information about the current graphics environment as a videoconfig
  14233.  structure.
  14234.  
  14235.   ANSI   DOS   OS/2   UNIX   XENIX
  14236.  
  14237.  
  14238.  
  14239.  _getviewcoord
  14240.  ────────────────────────────────────────────────────────────────────────────
  14241.  
  14242.    struct xycoord _far _getviewcoord( short x, short y );
  14243.  
  14244.  Include                           GRAPH.H
  14245.  
  14246.  x, y                              Physical coordinates to translate
  14247.  
  14248.  Returns                           View coordinates in an xycoord structure
  14249.                                    defined in GRAPH.H
  14250.  
  14251.  Translates the specified physical coordinates to view coordinates.
  14252.  
  14253.   ANSI   DOS   OS/2   UNIX   XENIX
  14254.  
  14255.  
  14256.  
  14257.  _getviewcoord_w
  14258.  ────────────────────────────────────────────────────────────────────────────
  14259.  
  14260.    struct xycoord _far _getviewcoord_w( double wx, double wy );
  14261.  
  14262.  Include                           GRAPH.H
  14263.  
  14264.  wx, wy                            Window coordinates to translate
  14265.  
  14266.  Returns                           View coordinates in an xycoord structure
  14267.                                    defined in GRAPH.H
  14268.  
  14269.  Translates the specified window coordinates to view coordinates.
  14270.  
  14271.   ANSI   DOS   OS/2   UNIX   XENIX
  14272.  
  14273.  
  14274.  
  14275.  _getviewcoord_wxy
  14276.  ────────────────────────────────────────────────────────────────────────────
  14277.  
  14278.    struct xycoord _far _getviewcoord_wxy( struct _wxycoord _far *pwxy1 );
  14279.  
  14280.  Include                           GRAPH.H
  14281.  
  14282.  pwxy1                             Window coordinate to translate
  14283.  
  14284.  Returns                           View coordinates in an xycoord structure
  14285.                                    defined in GRAPH.H
  14286.  
  14287.  Translates the specified window coordinate structure to view coordinates.
  14288.  
  14289.   ANSI   DOS   OS/2   UNIX   XENIX
  14290.  
  14291.  
  14292.  
  14293.  _getvisualpage
  14294.  ────────────────────────────────────────────────────────────────────────────
  14295.  
  14296.    short _far _getvisualpage( void );
  14297.  
  14298.  Include                           GRAPH.H
  14299.  
  14300.  Returns                           The number of the current visual page
  14301.  
  14302.  Gets the current visual page number.
  14303.  
  14304.   ANSI   DOS   OS/2   UNIX   XENIX
  14305.  
  14306.  
  14307.  
  14308.  getw
  14309.  ────────────────────────────────────────────────────────────────────────────
  14310.  
  14311.    int getw( FILE *stream );
  14312.  
  14313.  Include                           STDIO.H
  14314.  
  14315.  stream                            Pointer to target stream
  14316.  
  14317.  Returns                           The integer value read if successful;
  14318.                                    EOF to indicate failure or
  14319.                                    end-of-file
  14320.  
  14321.  Reads the next binary value of type int from stream and increases the
  14322.  associated file pointer to point to the next unread character.
  14323.  
  14324.   ANSI   DOS   OS/2   UNIX   XENIX
  14325.  
  14326.  
  14327.  
  14328.  _getwindowcoord
  14329.  ────────────────────────────────────────────────────────────────────────────
  14330.  
  14331.    struct _wxycoord _far _getwindowcoord( short x, short y );
  14332.  
  14333.  Include                           GRAPH.H
  14334.  
  14335.  x, y                              Physical coordinates to translate
  14336.  
  14337.  Returns                           The coordinates in an _wxycoord
  14338.                                    structure defined in GRAPH.H
  14339.  
  14340.  Translates the view coordinates (x, y) to window coordinates and returns
  14341.  them in an _wxycoord structure.
  14342.  
  14343.   ANSI   DOS   OS/2   UNIX   XENIX
  14344.  
  14345.  
  14346.  
  14347.  _getwritemode
  14348.  ────────────────────────────────────────────────────────────────────────────
  14349.  
  14350.    short _far _getwritemode( void );
  14351.  
  14352.  Include                           GRAPH.H
  14353.  
  14354.  Returns                           _GPSET, _GXOR, _GAND, _GOR, _GPRESET; -1
  14355.                                    if an error
  14356.                                    occurs
  14357.  
  14358.  Returns the current logical write mode used by _lineto, _rectangle, and
  14359.  _polygon.
  14360.  
  14361.   ANSI   DOS   OS/2   UNIX   XENIX
  14362.  
  14363.  
  14364.  
  14365.  gmtime
  14366.  ────────────────────────────────────────────────────────────────────────────
  14367.  
  14368.    struct tm *gmtime( const time_t *timer );
  14369.  
  14370.  Include                           TIME.H
  14371.  
  14372.  timer                             Pointer to stored Greenwich mean time
  14373.                                    value
  14374.  
  14375.  Returns                           A pointer to the structure result
  14376.  
  14377.  Converts the timer value to a structure.
  14378.  
  14379.   ANSI   DOS   OS/2   UNIX   XENIX
  14380.  
  14381.  
  14382.  
  14383.  _grstatus
  14384.  ────────────────────────────────────────────────────────────────────────────
  14385.  
  14386.    short _far _grstatus( void );
  14387.  
  14388.  Include                           GRAPH.H
  14389.  
  14390.  Returns                           The status of the most recently called
  14391.                                    graphics function
  14392.  
  14393.  Determines whether errors or warnings were generated by the most recently
  14394.  called graphics function.
  14395.  
  14396.   ANSI   DOS   OS/2   UNIX   XENIX
  14397.  
  14398.  
  14399.  
  14400.  halloc
  14401.  ────────────────────────────────────────────────────────────────────────────
  14402.  
  14403.    void _huge *halloc( long num, size_t size );
  14404.  
  14405.  Include                           MALLOC.H
  14406.  
  14407.  num                               Number of elements
  14408.  
  14409.  size                              Length in bytes of each element
  14410.  
  14411.  Returns                           A pointer to the allocated space
  14412.  
  14413.  Allocates a huge array from the operating system consisting of num elements,
  14414.  each of which is size bytes long.
  14415.  
  14416.   ANSI   DOS   OS/2   UNIX   XENIX
  14417.  
  14418.  
  14419.  
  14420.  
  14421.  
  14422.  
  14423.  _harderr
  14424.  ────────────────────────────────────────────────────────────────────────────
  14425.  
  14426.    void _harderr( void( _far *handler )( ) );
  14427.  
  14428.  Include                           DOS.H
  14429.  
  14430.  handler                           New INT 0x24 handler
  14431.  
  14432.  Returns                           No return value
  14433.  
  14434.  Establishes the user-defined routine that handler points to as the handler
  14435.  for DOS INT 0x24, which is invoked when a hardware error occurs during the
  14436.  execution of an I/O request.
  14437.  
  14438.   ANSI   DOS   OS/2   UNIX   XENIX
  14439.  
  14440.  
  14441.  
  14442.  _hardresume
  14443.  ────────────────────────────────────────────────────────────────────────────
  14444.  
  14445.    void _hardresume( int result );
  14446.  
  14447.  Include                           DOS.H
  14448.  
  14449.  result                            _HARDERR_IGNORE, _HARDERR_RETRY,
  14450.                                    _HARDERR_ABORT, _HARDERR_FAIL
  14451.  
  14452.  Returns                           No return value
  14453.  
  14454.  Allows a user-defined hard I/O error handler to return to DOS.
  14455.  
  14456.   ANSI   DOS   OS/2   UNIX   XENIX
  14457.  
  14458.  
  14459.  
  14460.  _hardretn
  14461.  ────────────────────────────────────────────────────────────────────────────
  14462.  
  14463.    void _hardretn( int error );
  14464.  
  14465.  Include                           DOS.H
  14466.  
  14467.  error                             Error to return from
  14468.  
  14469.  Returns                           No return value
  14470.  
  14471.  Allows a user-defined hard I/O error handler to return directly to the
  14472.  application program.
  14473.  
  14474.   ANSI   DOS   OS/2   UNIX   XENIX
  14475.  
  14476.  
  14477.  
  14478.  _heapadd
  14479.  ────────────────────────────────────────────────────────────────────────────
  14480.  
  14481.    int _heapadd( void _far *memblock, size_t size );
  14482.  
  14483.  Include                           MALLOC.H
  14484.  
  14485.  memblock                          Far pointer to heap memory
  14486.  
  14487.  size                              Size in bytes of memory to add
  14488.  
  14489.  Returns                           0 if successful; -1 if not
  14490.  
  14491.  Adds an unused piece of memory to the heap.
  14492.  
  14493.   ANSI   DOS   OS/2   UNIX   XENIX
  14494.  
  14495.  
  14496.  
  14497.  _heapchk
  14498.  ────────────────────────────────────────────────────────────────────────────
  14499.  
  14500.    int _heapchk( void );
  14501.  
  14502.  Include                           MALLOC.H
  14503.  
  14504.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  14505.                                    _HEAPBADNODE
  14506.  
  14507.  Checks the heap for minimal consistency.
  14508.  
  14509.   ANSI   DOS   OS/2   UNIX   XENIX
  14510.  
  14511.  
  14512.  
  14513.  _heapmin
  14514.  ────────────────────────────────────────────────────────────────────────────
  14515.  
  14516.    int _heapmin( void );
  14517.  
  14518.  Include                           MALLOC.H
  14519.  
  14520.  Returns                           0 if successful; -1 if not
  14521.  
  14522.  Releases unused memory in the heap back to the operating system.
  14523.  
  14524.   ANSI   DOS   OS/2   UNIX   XENIX
  14525.  
  14526.  
  14527.  
  14528.  _heapset
  14529.  ────────────────────────────────────────────────────────────────────────────
  14530.  
  14531.    int _heapset( unsigned int fill );
  14532.  
  14533.  Include                           MALLOC.H
  14534.  
  14535.  fill                              Fill character
  14536.  
  14537.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  14538.                                    _HEAPBADNODE
  14539.  
  14540.  Checks the heap for minimal consistency and then sets the heap's free
  14541.  entries with the fill value.
  14542.  
  14543.   ANSI   DOS   OS/2   UNIX   XENIX
  14544.  
  14545.  
  14546.  
  14547.  _heapwalk
  14548.  ────────────────────────────────────────────────────────────────────────────
  14549.  
  14550.    int _heapwalk( _HEAPINFO  *entryinfo );
  14551.  
  14552.  Include                           MALLOC.H
  14553.  
  14554.  entryinfo                         Structure to contain information about
  14555.                                    the next heap entry, defined in MALLOC.H
  14556.  
  14557.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADPTR,
  14558.                                    _HEAPBADBEGIN, _HEAPBADNODE, _HEAPEND
  14559.  
  14560.  Walks through the heap, one entry per call, returning a pointer to a
  14561.  _HEAPINFO structure that contains information about the next heap entry.
  14562.  
  14563.   ANSI   DOS   OS/2   UNIX   XENIX
  14564.  
  14565.  
  14566.  
  14567.  hfree
  14568.  ────────────────────────────────────────────────────────────────────────────
  14569.  
  14570.    void hfree( void _huge *memblock );
  14571.  
  14572.  Include                           MALLOC.H
  14573.  
  14574.  memblock                          Pointer to allocated memory block
  14575.  
  14576.  Returns                           No return value
  14577.  
  14578.  Deallocates a huge memory block obtained with halloc and returns the freed
  14579.  memory to the operating system.
  14580.  
  14581.   ANSI   DOS   OS/2   UNIX   XENIX
  14582.  
  14583.  
  14584.  
  14585.  hypot
  14586.  ────────────────────────────────────────────────────────────────────────────
  14587.  
  14588.    double hypot( double x, double y );
  14589.  
  14590.  Include                           MATH.H, ERRNO.H
  14591.  
  14592.  x, y                              Floating-point values
  14593.  
  14594.  Returns                           The length of the hypotenuse if
  14595.                                    successful; HUGE_VAL on overflow
  14596.  
  14597.  errno                             ERANGE
  14598.  
  14599.  Calculates the length of the hypotenuse of a right triangle, given the
  14600.  length of the two sides x and y.
  14601.  
  14602.   ANSI   DOS   OS/2   UNIX   XENIX
  14603.  
  14604.  
  14605.  
  14606.  hypotl
  14607.  ────────────────────────────────────────────────────────────────────────────
  14608.  
  14609.    long double hypotl( long double x, long double y );
  14610.  
  14611.  Include                           MATH.H, ERRNO.H
  14612.  
  14613.  x, y                              Long double-precision floating-point
  14614.                                    values
  14615.  
  14616.  Returns                           The length of the hypotenuse if
  14617.                                    successful; _LHUGE_VAL on
  14618.                                    overflow
  14619.  
  14620.  errno                             ERANGE
  14621.  
  14622.  Calculates the length of the hypotenuse of a right triangle, given the
  14623.  length of the two sides x and y, using the long double-precision
  14624.  floating-point version of arguments and return values.
  14625.  
  14626.   ANSI   DOS   OS/2   UNIX   XENIX
  14627.  
  14628.  
  14629.  
  14630.  _imagesize
  14631.  ────────────────────────────────────────────────────────────────────────────
  14632.  
  14633.    long _far _imagesize( short x1, short y1, short x2, short y2 );
  14634.  
  14635.  Include                           GRAPH.H
  14636.  
  14637.  x1, y1                            Upper left corner of bounding rectangle
  14638.  
  14639.  x2, y2                            Lower right corner of bounding rectangle
  14640.  
  14641.  Returns                           The storage size of the image in bytes
  14642.  
  14643.  Calculates the number of bytes needed to store the image defined by the
  14644.  bounding rectangle specified by the coordinates (x1, y1) and (x2, y2).
  14645.  
  14646.   ANSI   DOS   OS/2   UNIX   XENIX
  14647.  
  14648.  
  14649.  
  14650.  _imagesize_w
  14651.  ────────────────────────────────────────────────────────────────────────────
  14652.  
  14653.    long _far _imagesize_w( double wx1, double wy1, double wx2, double wy2 );
  14654.  
  14655.  Include                           GRAPH.H
  14656.  
  14657.  wx1, wy1                          Upper left corner of bounding rectangle
  14658.  
  14659.  wx2, wy2                          Lower right corner of bounding rectangle
  14660.  
  14661.  Returns                           The storage size of the image in bytes
  14662.  
  14663.  Calculates the number of bytes needed to store the image defined by the
  14664.  bounding rectangle specified by the window coordinates (wx1, wy1) and (wx2,
  14665.  wy2).
  14666.  
  14667.   ANSI   DOS   OS/2   UNIX   XENIX
  14668.  
  14669.  
  14670.  
  14671.  _imagesize_wxy
  14672.  ────────────────────────────────────────────────────────────────────────────
  14673.  
  14674.    long _far _imagesize_wxy( struct _wxycoord _ far *pwxy1,
  14675.    struct _wxycoord _far *pwxy2 );
  14676.  
  14677.  Include                           GRAPH.H
  14678.  
  14679.  pwxy1                             Upper left corner of bounding rectangle
  14680.  
  14681.  pwxy2                             Lower right corner of bounding rectangle
  14682.  
  14683.  Returns                           The storage size of the image in bytes
  14684.  
  14685.  Calculates the number of bytes needed to store the image defined by the
  14686.  bounding rectangle specified by the window coordinate pairs pwxy1 and pwxy2.
  14687.  
  14688.  
  14689.   ANSI   DOS   OS/2   UNIX   XENIX
  14690.  
  14691.  
  14692.  
  14693.  inp
  14694.  ────────────────────────────────────────────────────────────────────────────
  14695.  
  14696.    int inp( unsigned port );
  14697.  
  14698.  Include                           CONIO.H
  14699.  
  14700.  port                              Port number
  14701.  
  14702.  Returns                           The byte read from port
  14703.  
  14704.  Reads a byte from the specified port. (Note: For protected-mode libraries,
  14705.  use a .DEF file containing this line: SEGMENTS _IOSEG CLASS "IOSEG_CODE"
  14706.  IOPL.)
  14707.  
  14708.   ANSI   DOS   OS/2   UNIX   XENIX
  14709.  
  14710.  
  14711.  
  14712.  inpw
  14713.  ────────────────────────────────────────────────────────────────────────────
  14714.  
  14715.    unsigned inpw( unsigned port );
  14716.  
  14717.  Include                           CONIO.H
  14718.  
  14719.  port                              Port number
  14720.  
  14721.  Returns                           The word read from port
  14722.  
  14723.  Reads a word from the specified port. (Note: For protected-mode libraries,
  14724.  use a .DEF file containing this line: SEGMENTS _IOSEG CLASS "IOSEG_CODE"
  14725.  IOPL.)
  14726.  
  14727.   ANSI   DOS   OS/2   UNIX   XENIX
  14728.  
  14729.  
  14730.  
  14731.  intdos
  14732.  ────────────────────────────────────────────────────────────────────────────
  14733.  
  14734.    int intdos( union REGS *inregs, union REGS *outregs );
  14735.  
  14736.  Include                           DOS.H
  14737.  
  14738.  inregs                            Register values on call
  14739.  
  14740.  outregs                           Register values on return
  14741.  
  14742.  Returns                           The value of the AX register after the
  14743.                                    system call is completed
  14744.  
  14745.  Invokes the DOS system call specified by register values defined in inregs
  14746.  and returns the effect of the system call in outregs.
  14747.  
  14748.   ANSI   DOS   OS/2   UNIX   XENIX
  14749.  
  14750.  
  14751.  
  14752.  intdosx
  14753.  ────────────────────────────────────────────────────────────────────────────
  14754.  
  14755.    int intdosx( union REGS *inregs, union REGS *outregs, struct SREGS
  14756.    *segregs );
  14757.  
  14758.  Include                           DOS.H
  14759.  
  14760.  inregs                            Register values on call and return
  14761.  
  14762.  outregs                           Register values on return
  14763.  
  14764.  segregs                           Segment-register values on call and on
  14765.                                    return
  14766.  
  14767.  Returns                           The value of the AX register after the
  14768.                                    system call is completed
  14769.  
  14770.  Invokes the DOS system call specified by register values defined in inregs
  14771.  and segregs and returns the effect of the system call in outregs and
  14772.  segregs. It accepts segment-register values specifying segments and
  14773.  pointers.
  14774.  
  14775.   ANSI   DOS   OS/2   UNIX   XENIX
  14776.  
  14777.  
  14778.  
  14779.  int86
  14780.  ────────────────────────────────────────────────────────────────────────────
  14781.  
  14782.    int int86( int intnum, union REGS *inregs, union REGS *outregs );
  14783.  
  14784.  Include                           DOS.H
  14785.  
  14786.  intnum                            Interrupt number
  14787.  
  14788.  inregs                            Register values on call
  14789.  
  14790.  outregs                           Register values on return
  14791.  
  14792.  Returns                           The value of the AX register after the
  14793.                                    interrupt returns
  14794.  
  14795.  Executes the 8086-processor-family interrupt specified by the interrupt
  14796.  number intnum.
  14797.  
  14798.   ANSI   DOS   OS/2   UNIX   XENIX
  14799.  
  14800.  
  14801.  
  14802.  int86x
  14803.  ────────────────────────────────────────────────────────────────────────────
  14804.  
  14805.    int int86x( int intnum, union REGS *inregs, union REGS *outregs,
  14806.    struct SREGS *segregs );
  14807.  
  14808.  Include                           DOS.H
  14809.  
  14810.  intnum                            Interrupt number
  14811.  
  14812.  inregs                            Register values on call
  14813.  
  14814.  outregs                           Register values on return
  14815.  
  14816.  segregs                           Segment-register values on call and on
  14817.                                    return
  14818.  
  14819.  Returns                           The value of the AX register after the
  14820.                                    interrupt returns
  14821.  
  14822.  Executes the 8086-processor-family interrupt specified by the interrupt
  14823.  number intnum. It accepts segment-register values specifying segments and
  14824.  pointers.
  14825.  
  14826.   ANSI   DOS   OS/2   UNIX   XENIX
  14827.  
  14828.  
  14829.  
  14830.  isalnum
  14831.  ────────────────────────────────────────────────────────────────────────────
  14832.  
  14833.    int isalnum( int c );
  14834.  
  14835.  Include                           CTYPE.H
  14836.  
  14837.  c                                 Integer to be tested
  14838.  
  14839.  Returns                           A nonzero value if the integer satisfies
  14840.                                    the test condition; 0 if not
  14841.  
  14842.  Tests for alphanumeric character ('A'-'Z', 'a'-'z', or '0'-'9').
  14843.  
  14844.   ANSI   DOS   OS/2   UNIX   XENIX
  14845.  
  14846.  
  14847.  
  14848.  isalpha
  14849.  ────────────────────────────────────────────────────────────────────────────
  14850.  
  14851.    int isalpha( int c );
  14852.  
  14853.  Include                           CTYPE.H
  14854.  
  14855.  c                                 Integer to be tested
  14856.  
  14857.  Returns                           A nonzero value if the integer satisfies
  14858.                                    the test condition; 0 if not
  14859.  
  14860.  Tests for letter ('A'-'Z' or 'a'-'z').
  14861.  
  14862.   ANSI   DOS   OS/2   UNIX   XENIX
  14863.  
  14864.  
  14865.  
  14866.  isascii
  14867.  ────────────────────────────────────────────────────────────────────────────
  14868.  
  14869.    int isascii( int c );
  14870.  
  14871.  Include                           CTYPE.H
  14872.  
  14873.  c                                 Integer to be tested
  14874.  
  14875.  Returns                           A nonzero value if the integer satisfies
  14876.                                    the test condition; 0 if not
  14877.  
  14878.  Tests for ASCII character (0x00 - 0x7f).
  14879.  
  14880.   ANSI   DOS   OS/2   UNIX   XENIX
  14881.  
  14882.  
  14883.  
  14884.  isatty
  14885.  ────────────────────────────────────────────────────────────────────────────
  14886.  
  14887.    int isatty( int handle );
  14888.  
  14889.  Include                           IO.H
  14890.  
  14891.  handle                            Handle referring to device to be tested
  14892.  
  14893.  Returns                           A nonzero value if the device is a
  14894.                                    character device; 0 if not
  14895.  
  14896.  Determines whether handle is associated with a character device (a terminal,
  14897.  console, printer, or serial port).
  14898.  
  14899.   ANSI   DOS   OS/2   UNIX   XENIX
  14900.  
  14901.  
  14902.  
  14903.  iscntrl
  14904.  ────────────────────────────────────────────────────────────────────────────
  14905.  
  14906.    int iscntrl( int c );
  14907.  
  14908.  Include                           CTYPE.H
  14909.  
  14910.  c                                 Integer to be tested
  14911.  
  14912.  Returns                           A nonzero value if the integer satisfies
  14913.                                    the test condition; 0 if not
  14914.  
  14915.  Tests for control character (0x00 - 0x1f or 0x7f).
  14916.  
  14917.   ANSI   DOS   OS/2   UNIX   XENIX
  14918.  
  14919.  
  14920.  
  14921.  isdigit
  14922.  ────────────────────────────────────────────────────────────────────────────
  14923.  
  14924.    int isdigit( int c );
  14925.  
  14926.  Include                           CTYPE.H
  14927.  
  14928.  c                                 Integer to be tested
  14929.  
  14930.  Returns                           A nonzero value if the integer satisfies
  14931.                                    the test condition; 0 if not
  14932.  
  14933.  Tests for digit ('0'-'9').
  14934.  
  14935.   ANSI   DOS   OS/2   UNIX   XENIX
  14936.  
  14937.  
  14938.  
  14939.  isgraph
  14940.  ────────────────────────────────────────────────────────────────────────────
  14941.  
  14942.    int isgraph( int c );
  14943.  
  14944.  Include                           CTYPE.H
  14945.  
  14946.  c                                 Integer to be tested
  14947.  
  14948.  Returns                           A nonzero value if the integer satisfies
  14949.                                    the test condition; 0 if not
  14950.  
  14951.  Tests for graphical characters (any printable character except white space).
  14952.  
  14953.  
  14954.   ANSI   DOS   OS/2   UNIX   XENIX
  14955.  
  14956.  
  14957.  
  14958.  islower
  14959.  ────────────────────────────────────────────────────────────────────────────
  14960.  
  14961.    int islower( int c );
  14962.  
  14963.  Include                           CTYPE.H
  14964.  
  14965.  c                                 Integer to be tested
  14966.  
  14967.  Returns                           A nonzero value if the integer satisfies
  14968.                                    the test condition; 0 if not
  14969.  
  14970.  Tests for lowercase character ('a'-'z').
  14971.  
  14972.   ANSI   DOS   OS/2   UNIX   XENIX
  14973.  
  14974.  
  14975.  
  14976.  isprint
  14977.  ────────────────────────────────────────────────────────────────────────────
  14978.  
  14979.    int isprint( int c );
  14980.  
  14981.  Include                           CTYPE.H
  14982.  
  14983.  c                                 Integer to be tested
  14984.  
  14985.  Returns                           A nonzero value if the integer satisfies
  14986.                                    the test condition; 0 if not
  14987.  
  14988.  Tests for printable character (0x20 - 0x7e).
  14989.  
  14990.   ANSI   DOS   OS/2   UNIX   XENIX
  14991.  
  14992.  
  14993.  
  14994.  ispunct
  14995.  ────────────────────────────────────────────────────────────────────────────
  14996.  
  14997.    int ispunct( int c );
  14998.  
  14999.  Include                           CTYPE.H
  15000.  
  15001.  c                                 Integer to be tested
  15002.  
  15003.  Returns                           A nonzero value if the integer satisfies
  15004.                                    the test condition; 0 if not
  15005.  
  15006.  Tests for punctuation character.
  15007.  
  15008.   ANSI   DOS   OS/2   UNIX   XENIX
  15009.  
  15010.  
  15011.  
  15012.  isspace
  15013.  ────────────────────────────────────────────────────────────────────────────
  15014.  
  15015.    int isspace( int c );
  15016.  
  15017.  Include                           CTYPE.H
  15018.  
  15019.  c                                 Integer to be tested
  15020.  
  15021.  Returns                           A nonzero value if the integer satisfies
  15022.                                    the test condition; 0 if not
  15023.  
  15024.  Tests for white space character (0x09 - 0x0d or 0x20).
  15025.  
  15026.   ANSI   DOS   OS/2   UNIX   XENIX
  15027.  
  15028.  
  15029.  
  15030.  isupper
  15031.  ────────────────────────────────────────────────────────────────────────────
  15032.  
  15033.    int isupper( int c );
  15034.  
  15035.  Include                           CTYPE.H
  15036.  
  15037.  c                                 Integer to be tested
  15038.  
  15039.  Returns                           A nonzero value if the integer satisfies
  15040.                                    the test condition; 0 if not
  15041.  
  15042.  Tests for uppercase character ('A'-'Z').
  15043.  
  15044.   ANSI   DOS   OS/2   UNIX   XENIX
  15045.  
  15046.  
  15047.  
  15048.  isxdigit
  15049.  ────────────────────────────────────────────────────────────────────────────
  15050.  
  15051.    int isxdigit( int c );
  15052.  
  15053.  Include                           CTYPE.H
  15054.  
  15055.  c                                 Integer to be tested
  15056.  
  15057.  Returns                           A nonzero value if the integer satisfies
  15058.                                    the test condition; 0 if not
  15059.  
  15060.  Tests for hexadecimal digit ('A'-'F','a'-'f', or '0'-'9').
  15061.  
  15062.   ANSI   DOS   OS/2   UNIX   XENIX
  15063.  
  15064.  
  15065.  
  15066.  itoa
  15067.  ────────────────────────────────────────────────────────────────────────────
  15068.  
  15069.    char *itoa( int value, char *string, int radix );
  15070.  
  15071.  Include                           STDLIB.H
  15072.  
  15073.  value                             Number to be converted
  15074.  
  15075.  string                            String result
  15076.  
  15077.  radix                             Base of value
  15078.  
  15079.  Returns                           A pointer to string
  15080.  
  15081.  Converts the digits of the given value to a null-terminated character string
  15082.  and stores the result (up to 17 bytes) in string.
  15083.  
  15084.   ANSI   DOS   OS/2   UNIX   XENIX
  15085.  
  15086.  
  15087.  
  15088.  jn
  15089.  ────────────────────────────────────────────────────────────────────────────
  15090.  
  15091.    double jn( int n, double x );
  15092.  
  15093.  Include                           MATH.H
  15094.  
  15095.  n                                 Integer order
  15096.  
  15097.  x                                 Floating-point value
  15098.  
  15099.  Returns                           The result of a Bessel function of x
  15100.  
  15101.  Returns the Bessel function of the first kind (order n).
  15102.  
  15103.   ANSI   DOS   OS/2   UNIX   XENIX
  15104.  
  15105.  
  15106.  
  15107.  _jnl
  15108.  ────────────────────────────────────────────────────────────────────────────
  15109.  
  15110.    long double _jnl( int n, long double x );
  15111.  
  15112.  Include                           MATH.H
  15113.  
  15114.  n                                 Integer order
  15115.  
  15116.  x                                 Long double-precision floating-point
  15117.                                    value
  15118.  
  15119.  Returns                           The result of a Bessel function of x
  15120.  
  15121.  Returns the Bessel function of the first kind (order n). Long
  15122.  double-precision floating-point version of jn.
  15123.  
  15124.   ANSI   DOS   OS/2   UNIX   XENIX
  15125.  
  15126.  
  15127.  
  15128.  j1
  15129.  ────────────────────────────────────────────────────────────────────────────
  15130.  
  15131.    double j1( double x );
  15132.  
  15133.  Include                           MATH.H
  15134.  
  15135.  x                                 Floating-point value
  15136.  
  15137.  Returns                           The result of a Bessel function of x
  15138.  
  15139.  Returns the Bessel function of the first kind (order 1).
  15140.  
  15141.   ANSI   DOS   OS/2   UNIX   XENIX
  15142.  
  15143.  
  15144.  
  15145.  _j1l
  15146.  ────────────────────────────────────────────────────────────────────────────
  15147.  
  15148.    long double _j1l( long double x );
  15149.  
  15150.  Include                           MATH.H
  15151.  
  15152.  x                                 Long double-precision floating-point
  15153.                                    value
  15154.  
  15155.  Returns                           The result of a Bessel function of x
  15156.  
  15157.  Returns the Bessel function of the first kind (order 1). Long
  15158.  double-precision floating-point version of j1.
  15159.  
  15160.   ANSI   DOS   OS/2   UNIX   XENIX
  15161.  
  15162.  
  15163.  
  15164.  j0
  15165.  ────────────────────────────────────────────────────────────────────────────
  15166.  
  15167.    double j0( double x );
  15168.  
  15169.  Include                           MATH.H
  15170.  
  15171.  x                                 Floating-point value
  15172.  
  15173.  Returns                           The result of a Bessel function of x
  15174.  
  15175.  Returns the Bessel function of the first kind (order 0).
  15176.  
  15177.   ANSI   DOS   OS/2   UNIX   XENIX
  15178.  
  15179.  
  15180.  
  15181.  _j0l
  15182.  ────────────────────────────────────────────────────────────────────────────
  15183.  
  15184.    long double _j0l( long double x );
  15185.  
  15186.  Include                           MATH.H
  15187.  
  15188.  x                                 Long double-precision floating-point
  15189.                                    value
  15190.  
  15191.  Returns                           The result of a Bessel function of x
  15192.  
  15193.  Returns the Bessel function of the first kind (order 0). Long
  15194.  double-precision floating-point version of j0.
  15195.  
  15196.   ANSI   DOS   OS/2   UNIX   XENIX
  15197.  
  15198.  
  15199.  
  15200.  kbhit
  15201.  ────────────────────────────────────────────────────────────────────────────
  15202.  
  15203.    int kbhit( void );
  15204.  
  15205.  Include                           CONIO.H
  15206.  
  15207.  Returns                           A nonzero value if a key has been
  15208.                                    pressed; 0 if not
  15209.  
  15210.  Checks the console for an unread keystroke.
  15211.  
  15212.   ANSI   DOS   OS/2   UNIX   XENIX
  15213.  
  15214.  
  15215.  
  15216.  labs
  15217.  ────────────────────────────────────────────────────────────────────────────
  15218.  
  15219.    long labs( long n );
  15220.  
  15221.  Include                           STDLIB.H or MATH.H
  15222.  
  15223.  n                                 Long integer value
  15224.  
  15225.  Returns                           The absolute value of n
  15226.  
  15227.  Calculates the long-integer absolute value of n.
  15228.  
  15229.   ANSI   DOS   OS/2   UNIX   XENIX
  15230.  
  15231.  
  15232.  
  15233.  ldexp
  15234.  ────────────────────────────────────────────────────────────────────────────
  15235.  
  15236.    double ldexp( double x, int exp );
  15237.  
  15238.  Include                           MATH.H, ERRNO.H
  15239.  
  15240.  x                                 Floating-point value
  15241.  
  15242.  exp                               Integer exponent
  15243.  
  15244.  Returns                           The value of x * 2exp if successful;
  15245.                                    HUGE_VAL (depending on the sign of x) on
  15246.                                    overflow
  15247.  
  15248.  errno                             ERANGE
  15249.  
  15250.  Converts the mantissa and exponent to a floating-point value.
  15251.  
  15252.   ANSI   DOS   OS/2   UNIX   XENIX
  15253.  
  15254.  
  15255.  
  15256.  ldexpl
  15257.  ────────────────────────────────────────────────────────────────────────────
  15258.  
  15259.    long double ldexpl( long double x, int exp );
  15260.  
  15261.  Include                           MATH.H, ERRNO.H
  15262.  
  15263.  x                                 Long double-precision floating-point
  15264.                                    value
  15265.  
  15266.  exp                               Integer exponent
  15267.  
  15268.  Returns                           The value of x * 2exp if successful;
  15269.                                    _LHUGE_VAL (depending on the sign of x)
  15270.                                    on overflow
  15271.  
  15272.  errno                             ERANGE
  15273.  
  15274.  Converts the mantissa and exponent to a floating-point value. Long
  15275.  double-precision floating-point version of ldexp.
  15276.  
  15277.   ANSI   DOS   OS/2   UNIX   XENIX
  15278.  
  15279.  
  15280.  
  15281.  ldiv
  15282.  ────────────────────────────────────────────────────────────────────────────
  15283.  
  15284.    ldiv_t ldiv( long int numer, long int denom );
  15285.  
  15286.  Include                           STDLIB.H
  15287.  
  15288.  numer                             Numerator
  15289.  
  15290.  denom                             Denominator
  15291.  
  15292.  Returns                           The quotient and remainder as an ldiv_t
  15293.                                    structure
  15294.  
  15295.  Computes the quotient and remainder for a pair of long integer values.
  15296.  
  15297.   ANSI   DOS   OS/2   UNIX   XENIX
  15298.  
  15299.  
  15300.  
  15301.  lfind
  15302.  ────────────────────────────────────────────────────────────────────────────
  15303.  
  15304.    void *lfind( const void *key, const void *base, unsigned int *num,
  15305.    unsigned int width, int( *compare )( const void *elem1, const void *elem2
  15306.    ) );
  15307.  
  15308.  Include                           SEARCH.H
  15309.  
  15310.  key                               Object to search for
  15311.  
  15312.  base                              Pointer to base of search data
  15313.  
  15314.  num                               Number of elements
  15315.  
  15316.  width                             Element width
  15317.  
  15318.  compare                           Pointer to comparison function
  15319.  
  15320.  elem1                             Pointer to the key for the search
  15321.  
  15322.  elem2                             Pointer to the array element to be
  15323.                                    compared with the key
  15324.  
  15325.  Returns                           A pointer to an array element
  15326.                                    corresponding to key if successful; NULL
  15327.                                    if not
  15328.  
  15329.  Performs a linear search for the value key in an array of num elements, each
  15330.  of width bytes in size.
  15331.  
  15332.   ANSI   DOS   OS/2   UNIX   XENIX
  15333.  
  15334.  
  15335.  
  15336.  _lineto
  15337.  ────────────────────────────────────────────────────────────────────────────
  15338.  
  15339.    short _far _lineto( short x, short y );
  15340.  
  15341.  Include                           GRAPH.H
  15342.  
  15343.  x, y                              End point
  15344.  
  15345.  Returns                           A nonzero value if successful; 0 if not
  15346.  
  15347.  Draws a line from the current position up to and including the view
  15348.  coordinate (x, y).
  15349.  
  15350.   ANSI   DOS   OS/2   UNIX   XENIX
  15351.  
  15352.  
  15353.  
  15354.  _lineto_w
  15355.  ────────────────────────────────────────────────────────────────────────────
  15356.  
  15357.    short _far _lineto_w( double wx, double wy );
  15358.  
  15359.  Include                           GRAPH.H
  15360.  
  15361.  wx, wy                            End point
  15362.  
  15363.  Returns                           A nonzero value if successful; 0 if not
  15364.  
  15365.  Draws a line from the current position up to and including the window
  15366.  coordinate (wx, wy).
  15367.  
  15368.   ANSI   DOS   OS/2   UNIX   XENIX
  15369.  
  15370.  
  15371.  
  15372.  localeconv
  15373.  ────────────────────────────────────────────────────────────────────────────
  15374.  
  15375.    struct lconv *localeconv( void );
  15376.  
  15377.  Include                           LOCALE.H
  15378.  
  15379.  Returns                           A pointer to a structure of type lconv
  15380.  
  15381.  Gets detailed information on locale settings.
  15382.  
  15383.   ANSI   DOS   OS/2   UNIX   XENIX
  15384.  
  15385.  
  15386.  
  15387.  localtime
  15388.  ────────────────────────────────────────────────────────────────────────────
  15389.  
  15390.    struct tm *localtime( const time_t *timer );
  15391.  
  15392.  Include                           TIME.H
  15393.  
  15394.  timer                             Pointer to stored time structure
  15395.  
  15396.  Returns                           Pointer to a structure resolved; NULL if
  15397.                                    time cannot be interpreted
  15398.  
  15399.  Converts a time stored as a long value to a structure of type tm.
  15400.  
  15401.   ANSI   DOS   OS/2   UNIX   XENIX
  15402.  
  15403.  
  15404.  
  15405.  locking
  15406.  ────────────────────────────────────────────────────────────────────────────
  15407.  
  15408.    int locking( int handle, int mode, long nbytes );
  15409.  
  15410.  Include                           SYS\LOCKING.H, IO.H, ERRNO.H
  15411.  
  15412.  handle                            File handle
  15413.  
  15414.  mode                              LK_LOCK, LK_RLCK, LK_NBLCK, LK_NBRLCK,
  15415.                                    LK_UNLCK
  15416.  
  15417.  nbytes                            Number of bytes to lock
  15418.  
  15419.  Returns                           0 if successful; -1 if not
  15420.  
  15421.  errno                             EACCESS, EBADF, EDEADLOCK, EINVAL
  15422.  
  15423.  Locks or unlocks nbytes bytes of the file specified by handle.
  15424.  
  15425.   ANSI   DOS   OS/2   UNIX   XENIX
  15426.  
  15427.  
  15428.  
  15429.  log
  15430.  ────────────────────────────────────────────────────────────────────────────
  15431.  
  15432.    double log( double x );
  15433.  
  15434.  Include                           MATH.H, ERRNO.H
  15435.  
  15436.  x                                 Floating-point value
  15437.  
  15438.  Returns                           The natural logarithm of x
  15439.  
  15440.  errno                             EDOM, ERANGE
  15441.  
  15442.  Calculates the natural logarithm of x.
  15443.  
  15444.   ANSI   DOS   OS/2   UNIX   XENIX
  15445.  
  15446.  
  15447.  
  15448.  logl
  15449.  ────────────────────────────────────────────────────────────────────────────
  15450.  
  15451.    long double logl( long double x );
  15452.  
  15453.  Include                           MATH.H, ERRNO.H
  15454.  
  15455.  x                                 Long double-precision floating-point
  15456.                                    value
  15457.  
  15458.  Returns                           The natural logarithm of x
  15459.  
  15460.  errno                             EDOM, ERANGE
  15461.  
  15462.  Calculates the natural logarithm of x. Long double-precision floating-point
  15463.  version of log.
  15464.  
  15465.   ANSI   DOS   OS/2   UNIX   XENIX
  15466.  
  15467.  
  15468.  
  15469.  log10
  15470.  ────────────────────────────────────────────────────────────────────────────
  15471.  
  15472.    double log10( double x );
  15473.  
  15474.  Include                           MATH.H, ERRNO.H
  15475.  
  15476.  x                                 Floating-point value
  15477.  
  15478.  Returns                           The base-10 logarithm of x
  15479.  
  15480.  errno                             EDOM, ERANGE
  15481.  
  15482.  Calculates the base-10 logarithm of x.
  15483.  
  15484.   ANSI   DOS   OS/2   UNIX   XENIX
  15485.  
  15486.  
  15487.  
  15488.  log10l
  15489.  ────────────────────────────────────────────────────────────────────────────
  15490.  
  15491.    long double log10l( long double x );
  15492.  
  15493.  Include                           MATH.H, ERRNO.H
  15494.  
  15495.  x                                 Long double-precision floating-point
  15496.                                    value
  15497.  
  15498.  Returns                           The base-10 logarithm of x
  15499.  
  15500.  errno                             EDOM, ERANGE
  15501.  
  15502.  Calculates the base-10 logarithm of x. Long double-precision floating-point
  15503.  version of log10.
  15504.  
  15505.   ANSI   DOS   OS/2   UNIX   XENIX
  15506.  
  15507.  
  15508.  
  15509.  longjmp
  15510.  ────────────────────────────────────────────────────────────────────────────
  15511.  
  15512.    void longjmp( jmp_buf env, int value );
  15513.  
  15514.  Include                           SETJMP.H
  15515.  
  15516.  env                               Variable in which environment is stored
  15517.  
  15518.  value                             Value to be returned to setjmp call
  15519.  
  15520.  Returns                           No return value
  15521.  
  15522.  Restores a stack environment and execution locale previously saved in env by
  15523.  setjmp.
  15524.  
  15525.   ANSI   DOS   OS/2   UNIX   XENIX
  15526.  
  15527.  
  15528.  
  15529.  _lrotl
  15530.  ────────────────────────────────────────────────────────────────────────────
  15531.  
  15532.    unsigned long _lrotl( unsigned long value, int shift );
  15533.  
  15534.  Include                           STDLIB.H
  15535.  
  15536.  value                             Value to be rotated
  15537.  
  15538.  shift                             Number of bits to shift
  15539.  
  15540.  Returns                           The rotated value
  15541.  
  15542.  Rotates the value to the left by shift bits.
  15543.  
  15544.   ANSI   DOS   OS/2   UNIX   XENIX
  15545.  
  15546.  
  15547.  
  15548.  _lrotr
  15549.  ────────────────────────────────────────────────────────────────────────────
  15550.  
  15551.    unsigned long _lrotr( unsigned long value, int shift );
  15552.  
  15553.  Include                           STDLIB.H
  15554.  
  15555.  value                             Value to be rotated
  15556.  
  15557.  shift                             Number of bits to shift
  15558.  
  15559.  Returns                           The rotated value
  15560.  
  15561.  Rotates the value to the right by shift bits.
  15562.  
  15563.   ANSI   DOS   OS/2   UNIX   XENIX
  15564.  
  15565.  
  15566.  
  15567.  lsearch
  15568.  ────────────────────────────────────────────────────────────────────────────
  15569.  
  15570.    void *lsearch( const void *key, const void *base, unsigned int *num,
  15571.    unsigned int width, int( *compare )( const void *elem1, const void *elem2
  15572.    ) );
  15573.  
  15574.  Include                           SEARCH.H
  15575.  
  15576.  key                               Object to search for
  15577.  
  15578.  base                              Pointer to base of search data
  15579.  
  15580.  num                               Number of elements
  15581.  
  15582.  width                             Element width
  15583.  
  15584.  compare                           Pointer to comparison function
  15585.  
  15586.  elem1                             Pointer to the key for the search
  15587.  
  15588.  elem2                             Pointer to the array element to be
  15589.                                    compared with the key
  15590.  
  15591.  Returns                           A pointer to the array element base that
  15592.                                    matches key if the key is found; a
  15593.                                    pointer to the newly added item at the
  15594.                                    end of the array
  15595.                                    otherwise
  15596.  
  15597.  Performs a linear search for the value key in an array of num elements, each
  15598.  of width bytes in size. If the value is not found, it adds key to the end of
  15599.  the list.
  15600.  
  15601.   ANSI   DOS   OS/2   UNIX   XENIX
  15602.  
  15603.  
  15604.  
  15605.  lseek
  15606.  ────────────────────────────────────────────────────────────────────────────
  15607.  
  15608.    long lseek( int handle, long offset, int origin );
  15609.  
  15610.  Include                           IO.H, STDIO.H, ERRNO.H
  15611.  
  15612.  handle                            Handle referring to open file
  15613.  
  15614.  offset                            Number of bytes from origin
  15615.  
  15616.  origin                            SEEK_SET, SEEK_CUR, SEEK_END
  15617.  
  15618.  Returns                           The offset in bytes of the new position
  15619.                                    if successful; -1L if not
  15620.  
  15621.  errno                             EBADF, EINVAL
  15622.  
  15623.  Moves the file pointer associated with handle to a new location that is
  15624.  offset bytes from origin.
  15625.  
  15626.   ANSI   DOS   OS/2   UNIX   XENIX
  15627.  
  15628.  
  15629.  
  15630.  ltoa
  15631.  ────────────────────────────────────────────────────────────────────────────
  15632.  
  15633.    char *ltoa( long value, char *string, int radix );
  15634.  
  15635.  Include                           STDLIB.H
  15636.  
  15637.  value                             Number to be converted
  15638.  
  15639.  string                            String result
  15640.  
  15641.  radix                             Base of value
  15642.  
  15643.  Returns                           A pointer to string
  15644.  
  15645.  Converts the digits of value to a null-terminated character string and
  15646.  stores the result (up to 33 bytes) in string.
  15647.  
  15648.   ANSI   DOS   OS/2   UNIX   XENIX
  15649.  
  15650.  
  15651.  
  15652.  _makepath
  15653.  ────────────────────────────────────────────────────────────────────────────
  15654.  
  15655.    void _makepath( char *path, char *drive, char *dir, char *fname, char *ext
  15656.    );
  15657.  
  15658.  Include                           STDLIB.H
  15659.  
  15660.  path                              Full path-name buffer
  15661.  
  15662.  drive                             Drive letter
  15663.  
  15664.  dir                               Directory path
  15665.  
  15666.  fname                             File name
  15667.  
  15668.  ext                               File extension
  15669.  
  15670.  Returns                           No return value
  15671.  
  15672.  Creates a single path name, composed of a drive letter, directory path, file
  15673.  name, and file-name extension.
  15674.  
  15675.   ANSI   DOS   OS/2   UNIX   XENIX
  15676.  
  15677.  
  15678.  
  15679.  
  15680.  
  15681.  
  15682.  malloc
  15683.  ────────────────────────────────────────────────────────────────────────────
  15684.  
  15685.    void *malloc( size_t size );
  15686.  
  15687.  Include                           STDLIB.H or MALLOC.H
  15688.  
  15689.  size                              Number of bytes to allocate
  15690.  
  15691.  Returns                           A pointer to the allocated space
  15692.  
  15693.  Allocates a memory block of at least size bytes.
  15694.  
  15695.   ANSI   DOS   OS/2   UNIX   XENIX
  15696.  
  15697.  
  15698.  
  15699.  matherr
  15700.  ────────────────────────────────────────────────────────────────────────────
  15701.  
  15702.    int matherr( struct exception *except );
  15703.  
  15704.  Include                           MATH.H
  15705.  
  15706.  except                            Math exception information
  15707.  
  15708.  Returns                           A nonzero value if successful; 0 if not
  15709.  
  15710.  Processes errors generated by the functions of the math library. The user
  15711.  can provide a different matherr definition for special treatment of math
  15712.  errors.
  15713.  
  15714.   ANSI   DOS   OS/2   UNIX   XENIX
  15715.  
  15716.  
  15717.  
  15718.  _matherrl
  15719.  ────────────────────────────────────────────────────────────────────────────
  15720.  
  15721.    int _matherrl( struct _exceptionl *except );
  15722.  
  15723.  Include                           MATH.H
  15724.  
  15725.  except                            Math exception information
  15726.  
  15727.  Returns                           A nonzero value if successful; 0 if not
  15728.  
  15729.  Processes errors generated by the long double-precision functions of the
  15730.  math library.
  15731.  
  15732.   ANSI   DOS   OS/2   UNIX   XENIX
  15733.  
  15734.  
  15735.  
  15736.  max
  15737.  ────────────────────────────────────────────────────────────────────────────
  15738.  
  15739.    type max( type a, type b );
  15740.  
  15741.  Include                           STDLIB.H
  15742.  
  15743.  type                              Any numerical data type
  15744.  
  15745.  a, b                              Values to compare
  15746.  
  15747.  Returns                           The larger of the two arguments
  15748.  
  15749.  Compares two values of the same data type, returning the larger one.
  15750.  
  15751.   ANSI   DOS   OS/2   UNIX   XENIX
  15752.  
  15753.  
  15754.  
  15755.  _memavl
  15756.  ────────────────────────────────────────────────────────────────────────────
  15757.  
  15758.    size_t _memavl( void );
  15759.  
  15760.  Include                           MALLOC.H
  15761.  
  15762.  Returns                           The size in bytes as an unsigned integer
  15763.  
  15764.  Returns the approximate amount of memory available for dynamic memory
  15765.  allocation in the near heap (default data segment).
  15766.  
  15767.   ANSI   DOS   OS/2   UNIX   XENIX
  15768.  
  15769.  
  15770.  
  15771.  memccpy
  15772.  ────────────────────────────────────────────────────────────────────────────
  15773.  
  15774.    void *memccpy( void *dest, void *src, int c, unsigned int count );
  15775.  
  15776.  Include                           STRING.H or  MEMORY.H
  15777.  
  15778.  dest                              Pointer to destination
  15779.  
  15780.  src                               Pointer to source
  15781.  
  15782.  c                                 Last character to copy
  15783.  
  15784.  count                             Number of characters
  15785.  
  15786.  Returns                           A pointer to the byte in dest that
  15787.                                    immediately follows the copied character
  15788.                                    (c) if successful; NULL if count bytes
  15789.                                    copied before c
  15790.                                    was found
  15791.  
  15792.  Copies zero or more bytes of the source to the destination, up to and
  15793.  including the first occurrence of the character c or until count bytes have
  15794.  been copied, whichever comes first.
  15795.  
  15796.   ANSI   DOS   OS/2   UNIX   XENIX
  15797.  
  15798.  
  15799.  
  15800.  memchr
  15801.  ────────────────────────────────────────────────────────────────────────────
  15802.  
  15803.    void *memchr( const void *buf, int c, size_t count );
  15804.  
  15805.  Include                           STRING.H or MEMORY.H
  15806.  
  15807.  buf                               Pointer to buffer
  15808.  
  15809.  c                                 Character to search for
  15810.  
  15811.  count                             Maximum number of characters to scan
  15812.  
  15813.  Returns                           A pointer to the first location of c in
  15814.                                    buf if successful; NULL if not
  15815.  
  15816.  Looks for the first occurrence of a character in the first count bytes of
  15817.  the buffer.
  15818.  
  15819.   ANSI   DOS   OS/2   UNIX   XENIX
  15820.  
  15821.  
  15822.  
  15823.  memcmp
  15824.  ────────────────────────────────────────────────────────────────────────────
  15825.  
  15826.    int memcmp( const void *buf1, const void *buf2, size_t count );
  15827.  
  15828.  Include                           STRING.H or MEMORY.H
  15829.  
  15830.  buf1, buf2                        Pointers to buffers to compare
  15831.  
  15832.  count                             Maximum number of characters to compare
  15833.  
  15834.  Returns                           A value less than, equal to, or greater
  15835.                                    than 0 if the size of the buffer pointed
  15836.                                    to by buf1 is less than, equal to, or
  15837.                                    greater than the size of the buffer
  15838.                                    pointed to by buf2.
  15839.  
  15840.  Compares the first count bytes of two buffers and returns a value indicating
  15841.  their relationship.
  15842.  
  15843.   ANSI   DOS   OS/2   UNIX   XENIX
  15844.  
  15845.  
  15846.  
  15847.  memcpy
  15848.  ────────────────────────────────────────────────────────────────────────────
  15849.  
  15850.    void *memcpy( void *dest, const void *src, size_t count );
  15851.  
  15852.  Include                           STRING.H or MEMORY.H
  15853.  
  15854.  dest                              Pointer to destination buffer
  15855.  
  15856.  src                               Pointer to the buffer to copy from
  15857.  
  15858.  count                             Number of characters to copy
  15859.  
  15860.  Returns                           dest
  15861.  
  15862.  Copies count bytes of src to dest. The first count bytes of src and dest
  15863.  should not overlap.
  15864.  
  15865.   ANSI   DOS   OS/2   UNIX   XENIX
  15866.  
  15867.  
  15868.  
  15869.  memicmp
  15870.  ────────────────────────────────────────────────────────────────────────────
  15871.  
  15872.    int memicmp( void *buf1, void *buf2, unsigned int count );
  15873.  
  15874.  Include                           STRING.H or MEMORY.H
  15875.  
  15876.  buf1, buf2                        Pointers to buffers to compare
  15877.  
  15878.  count                             Number of characters
  15879.  
  15880.  Returns                           A value less than, equal to, or greater
  15881.                                    than 0 if the size of the buffer pointed
  15882.                                    to by buf1 is less than, equal to, or
  15883.                                    greater than the size of the buffer
  15884.                                    pointed to by buf2.
  15885.  
  15886.  Compares the first count bytes of buf1 and buf2 byte-by-byte, without
  15887.  regarding case (all letters are considered lowercase), and returns a value
  15888.  indicating their relationship.
  15889.  
  15890.   ANSI   DOS   OS/2   UNIX   XENIX
  15891.  
  15892.  
  15893.  
  15894.  _memmax
  15895.  ────────────────────────────────────────────────────────────────────────────
  15896.  
  15897.    size_t _memmax( void );
  15898.  
  15899.  Include                           MALLOC.H
  15900.  
  15901.  Returns                           The size of the largest contiguous block
  15902.                                    of memory that can be allocated from the
  15903.                                    near heap if successful; 0 if nothing
  15904.                                    more can be allocated from the near heap
  15905.  
  15906.  Determines the size of the largest contiguous free memory block in the near
  15907.  heap.
  15908.  
  15909.   ANSI   DOS   OS/2   UNIX   XENIX
  15910.  
  15911.  
  15912.  
  15913.  memmove
  15914.  ────────────────────────────────────────────────────────────────────────────
  15915.  
  15916.    void *memmove( void *dest, const void *src, size_t count );
  15917.  
  15918.  Include                           STRING.H
  15919.  
  15920.  dest                              Pointer to destination buffer
  15921.  
  15922.  src                               Pointer to source buffer
  15923.  
  15924.  count                             Number of characters to copy
  15925.  
  15926.  Returns                           The value of dest
  15927.  
  15928.  Copies count characters from src to dest and handles overlap properly.
  15929.  
  15930.   ANSI   DOS   OS/2   UNIX   XENIX
  15931.  
  15932.  
  15933.  
  15934.  memset
  15935.  ────────────────────────────────────────────────────────────────────────────
  15936.  
  15937.    void *memset( void *dest, int c, size_t count );
  15938.  
  15939.  Include                           STRING.H or MEMORY.H
  15940.  
  15941.  dest                              Pointer to destination buffer
  15942.  
  15943.  c                                 Character to set to
  15944.  
  15945.  count                             Number of characters to be set
  15946.  
  15947.  Returns                           A pointer to dest
  15948.  
  15949.  Sets the first count bytes of dest to the character c.
  15950.  
  15951.   ANSI   DOS   OS/2   UNIX   XENIX
  15952.  
  15953.  
  15954.  
  15955.  min
  15956.  ────────────────────────────────────────────────────────────────────────────
  15957.  
  15958.    type min( type a, type b );
  15959.  
  15960.  Include                           STDLIB.H
  15961.  
  15962.  type                              Any numeric data type
  15963.  
  15964.  a, b                              Values to compare
  15965.  
  15966.  Returns                           The smaller of the two arguments
  15967.  
  15968.  Compares two values of the same data type and returns the smaller of them.
  15969.  
  15970.   ANSI   DOS   OS/2   UNIX   XENIX
  15971.  
  15972.  
  15973.  
  15974.  mkdir
  15975.  ────────────────────────────────────────────────────────────────────────────
  15976.  
  15977.    int mkdir( char *dirname );
  15978.  
  15979.  Include                           DIRECT.H, ERRNO.H
  15980.  
  15981.  dirname                           Path name for new directory
  15982.  
  15983.  Returns                           0 if successful; -1 if not
  15984.  
  15985.  errno                             EACCESS, ENOENT
  15986.  
  15987.  Creates a new directory with the specified directory name.
  15988.  
  15989.   ANSI   DOS   OS/2   UNIX   XENIX
  15990.  
  15991.  
  15992.  
  15993.  mktemp
  15994.  ────────────────────────────────────────────────────────────────────────────
  15995.  
  15996.    char *mktemp( char *template );
  15997.  
  15998.  Include                           IO.H
  15999.  
  16000.  template                          File-name pattern
  16001.  
  16002.  Returns                           A pointer to the modified template if
  16003.                                    successful; NULL if not
  16004.  
  16005.  Creates a unique file name by modifying the given file-name pattern.
  16006.  
  16007.   ANSI   DOS   OS/2   UNIX   XENIX
  16008.  
  16009.  
  16010.  
  16011.  mktime
  16012.  ────────────────────────────────────────────────────────────────────────────
  16013.  
  16014.    time_t mktime( struct tm *timeptr );
  16015.  
  16016.  Include                           TIME.H
  16017.  
  16018.  timeptr                           Local time structure
  16019.  
  16020.  Returns                           The calendar time encoded as a type
  16021.                                    time_t value if successful;
  16022.                                    -1 cast as type time_t if not
  16023.  
  16024.  Converts the local time to a calendar value.
  16025.  
  16026.   ANSI   DOS   OS/2   UNIX   XENIX
  16027.  
  16028.  
  16029.  
  16030.  modf
  16031.  ────────────────────────────────────────────────────────────────────────────
  16032.  
  16033.    double modf( double x, double *intptr );
  16034.  
  16035.  Include                           MATH.H
  16036.  
  16037.  x                                 Floating-point value
  16038.  
  16039.  intptr                            Pointer to stored integer portion
  16040.  
  16041.  Returns                           The signed fractional portion of x
  16042.  
  16043.  Breaks down the floating-point value x into fractional and integer parts
  16044.  with the same sign as x.
  16045.  
  16046.   ANSI   DOS   OS/2   UNIX   XENIX
  16047.  
  16048.  
  16049.  
  16050.  modfl
  16051.  ────────────────────────────────────────────────────────────────────────────
  16052.  
  16053.    long double modfl( long double x, long double *intptr );
  16054.  
  16055.  Include                           MATH.H
  16056.  
  16057.  x                                 Long double-precision floating-point
  16058.                                    value
  16059.  
  16060.  intptr                            Pointer to stored integer portion
  16061.  
  16062.  Returns                           The signed fractional portion of x
  16063.  
  16064.  Breaks down the long double-precision floating-point value of x into
  16065.  fractional and integer parts with the same sign as x.
  16066.  
  16067.   ANSI   DOS   OS/2   UNIX   XENIX
  16068.  
  16069.  
  16070.  
  16071.  movedata
  16072.  ────────────────────────────────────────────────────────────────────────────
  16073.  
  16074.    void movedata( unsigned int srcseg, unsigned int srcoff, unsigned int
  16075.    destseg,
  16076.    unsigned int destoff, unsigned int count );
  16077.  
  16078.  Include                           STRING.H or MEMORY.H
  16079.  
  16080.  srcseg                            Segment address of source
  16081.  
  16082.  srcoff                            Segment offset of source
  16083.  
  16084.  destseg                           Segment address of destination
  16085.  
  16086.  destoff                           Segment offset of destination
  16087.  
  16088.  count                             Number of bytes
  16089.  
  16090.  Returns                           No return value
  16091.  
  16092.  Copies count bytes from the source address specified by srcseg:srcoff to the
  16093.  destination address specified by destseg:destoff.
  16094.  
  16095.   ANSI   DOS   OS/2   UNIX   XENIX
  16096.  
  16097.  
  16098.  
  16099.  _moveto
  16100.  ────────────────────────────────────────────────────────────────────────────
  16101.  
  16102.    struct xycoord _far _moveto( short x, short y );
  16103.  
  16104.  Include                           GRAPH.H
  16105.  
  16106.  x, y                              Target position
  16107.  
  16108.  Returns                           The coordinates of the previous position
  16109.                                    in an xycoord structure
  16110.  
  16111.  Moves the current graphics-output position to the specified view
  16112.  coordinates.
  16113.  
  16114.   ANSI   DOS   OS/2   UNIX   XENIX
  16115.  
  16116.  
  16117.  
  16118.  _moveto_w
  16119.  ────────────────────────────────────────────────────────────────────────────
  16120.  
  16121.    struct _wxycoord _far _moveto_w( double wx, double wy );
  16122.  
  16123.  Include                           GRAPH.H
  16124.  
  16125.  wx, wy                            Target position
  16126.  
  16127.  Returns                           The coordinates of the previous position
  16128.                                    in a _wxycoord structure
  16129.  
  16130.  Moves the current graphics-output position to the specified window
  16131.  coordinates.
  16132.  
  16133.   ANSI   DOS   OS/2   UNIX   XENIX
  16134.  
  16135.  
  16136.  
  16137.  _msize
  16138.  ────────────────────────────────────────────────────────────────────────────
  16139.  
  16140.    size_t _msize( void *memblock );
  16141.  
  16142.  Include                           MALLOC.H
  16143.  
  16144.  memblock                          Pointer to memory block
  16145.  
  16146.  Returns                           The size in bytes
  16147.  
  16148.  An unsigned integer representing the size in bytes of the memory block
  16149.  allocated by a call to calloc, malloc, or realloc.
  16150.  
  16151.   ANSI   DOS   OS/2   UNIX   XENIX
  16152.  
  16153.  
  16154.  
  16155.  _ncalloc
  16156.  ────────────────────────────────────────────────────────────────────────────
  16157.  
  16158.    void _near *_ncalloc( size_t num, size_t size );
  16159.  
  16160.  Include                           MALLOC.H
  16161.  
  16162.  num                               Number of elements
  16163.  
  16164.  size                              Length in bytes of each element
  16165.  
  16166.  Returns                           A near pointer to the allocated space if
  16167.                                    successful; NULL if there is
  16168.                                    insufficient memory available
  16169.  
  16170.  Allocates storage for an array of num elements, each of length size bytes in
  16171.  the near heap. Storage is initialized to zero.
  16172.  
  16173.   ANSI   DOS   OS/2   UNIX   XENIX
  16174.  
  16175.  
  16176.  
  16177.  _nexpand
  16178.  ────────────────────────────────────────────────────────────────────────────
  16179.  
  16180.    void _near *_nexpand( void _near *memblock, size_t size );
  16181.  
  16182.  Include                           MALLOC.H
  16183.  
  16184.  memblock                          Pointer to previously allocated memory
  16185.                                    block
  16186.  
  16187.  size                              New size in bytes
  16188.  
  16189.  Returns                           A near pointer to the resized block if
  16190.                                    successful; NULL if there is
  16191.                                    insufficient memory
  16192.  
  16193.  Changes the size of a previously allocated memory block by attempting to
  16194.  expand or contract the block without moving its location in the near heap.
  16195.  
  16196.   ANSI   DOS   OS/2   UNIX   XENIX
  16197.  
  16198.  
  16199.  
  16200.  _nfree
  16201.  ────────────────────────────────────────────────────────────────────────────
  16202.  
  16203.    void _nfree( void _near *memblock );
  16204.  
  16205.  Include                           MALLOC.H
  16206.  
  16207.  memblock                          Allocated memory block in the near heap
  16208.  
  16209.  Returns                           No return value
  16210.  
  16211.  Frees a memory block in the near heap.
  16212.  
  16213.   ANSI   DOS   OS/2   UNIX   XENIX
  16214.  
  16215.  
  16216.  
  16217.  _nheapchk
  16218.  ────────────────────────────────────────────────────────────────────────────
  16219.  
  16220.    int _nheapchk( void );
  16221.  
  16222.  Include                           MALLOC.H
  16223.  
  16224.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  16225.                                    _HEAPBADNODE
  16226.  
  16227.  Checks for minimal consistency on the dynamically allocated memory space in
  16228.  the default data segment, or "near heap." The consistency check determines
  16229.  whether all the near heap entries are within the bounds of the heap's
  16230.  current memory allocation.
  16231.  
  16232.   ANSI   DOS   OS/2   UNIX   XENIX
  16233.  
  16234.  
  16235.  
  16236.  _nheapmin
  16237.  ────────────────────────────────────────────────────────────────────────────
  16238.  
  16239.    int _nheapmin( void );
  16240.  
  16241.  Include                           MALLOC.H
  16242.  
  16243.  Returns                           0 if successful; -1 if not
  16244.  
  16245.  Releases unused memory in the near heap back to the operating system.
  16246.  
  16247.   ANSI   DOS   OS/2   UNIX   XENIX
  16248.  
  16249.  
  16250.  
  16251.  _nheapset
  16252.  ────────────────────────────────────────────────────────────────────────────
  16253.  
  16254.    int _nheapset( unsigned int fill );
  16255.  
  16256.  Include                           MALLOC.H
  16257.  
  16258.  fill                              Fill character
  16259.  
  16260.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADBEGIN,
  16261.                                    _HEAPBADNODE
  16262.  
  16263.  Checks for minimal consistency in the near heap and then sets the heap's
  16264.  free entries with the fill value.
  16265.  
  16266.   ANSI   DOS   OS/2   UNIX   XENIX
  16267.  
  16268.  
  16269.  
  16270.  _nheapwalk
  16271.  ────────────────────────────────────────────────────────────────────────────
  16272.  
  16273.    int _nheapwalk( _HEAPINFO *entryinfo );
  16274.  
  16275.  Include                           MALLOC.H
  16276.  
  16277.  entryinfo                         Structure to contain information about
  16278.                                    the next near heap entry defined in
  16279.                                    MALLOC.H
  16280.  
  16281.  Returns                           _HEAPOK, _HEAPEMPTY, _HEAPBADPTR,
  16282.                                    _HEAPBADBEGIN, _HEAPBADNODE, _HEAPEND
  16283.  
  16284.  Walks through the near heap, one entry per call, returning a pointer to a
  16285.  _HEAPINFO structure that contains information about the next near heap
  16286.  entry.
  16287.  
  16288.   ANSI   DOS   OS/2   UNIX   XENIX
  16289.  
  16290.  
  16291.  
  16292.  _nmalloc
  16293.  ────────────────────────────────────────────────────────────────────────────
  16294.  
  16295.    void _near *_nmalloc( size_t size );
  16296.  
  16297.  Include                           MALLOC.H
  16298.  
  16299.  size                              Number of bytes to allocate
  16300.  
  16301.  Returns                           A near pointer to the allocated space if
  16302.                                    successful; NULL if not
  16303.  
  16304.  Allocates a memory block of at least size bytes in the near heap.
  16305.  
  16306.   ANSI   DOS   OS/2   UNIX   XENIX
  16307.  
  16308.  
  16309.  
  16310.  _nmsize
  16311.  ────────────────────────────────────────────────────────────────────────────
  16312.  
  16313.    size_t _nmsize( void _near *memblock );
  16314.  
  16315.  Include                           MALLOC.H
  16316.  
  16317.  memblock                          Pointer to near memory block
  16318.  
  16319.  Returns                           The size in bytes
  16320.  
  16321.  An unsigned integer representing the size in bytes of the near-heap memory
  16322.  block allocated by a call to _ncalloc, _nmalloc, or _nrealloc
  16323.  
  16324.   ANSI   DOS   OS/2   UNIX   XENIX
  16325.  
  16326.  
  16327.  
  16328.  _nrealloc
  16329.  ────────────────────────────────────────────────────────────────────────────
  16330.  
  16331.    void _near *_nrealloc( void _near *memblock, size_t size );
  16332.  
  16333.  Include                           MALLOC.H
  16334.  
  16335.  memblock                          Pointer to previously allocated memory
  16336.                                    block
  16337.  
  16338.  size                              New size in bytes
  16339.  
  16340.  Returns                           A near pointer to the reallocated memory
  16341.                                    block if successful; NULL if not
  16342.  
  16343.  Changes the size and possibly the location of a memory block in the near
  16344.  heap.
  16345.  
  16346.   ANSI   DOS   OS/2   UNIX   XENIX
  16347.  
  16348.  
  16349.  
  16350.  _nstrdup
  16351.  ────────────────────────────────────────────────────────────────────────────
  16352.  
  16353.    char _near * _far _nstrdup( const char _far *string );
  16354.  
  16355.  Include                           STRING.H
  16356.  
  16357.  string                            Source string
  16358.  
  16359.  Returns                           A near pointer to the storage space
  16360.                                    containing the duplicate string
  16361.  
  16362.  Duplicates string, copying it to memory allocated by _nmalloc.
  16363.  Model-independent form of strdup.
  16364.  
  16365.   ANSI   DOS   OS/2   UNIX   XENIX
  16366.  
  16367.  
  16368.  
  16369.  onexit
  16370.  ────────────────────────────────────────────────────────────────────────────
  16371.  
  16372.    onexit_t onexit( onexit_t func );
  16373.  
  16374.  Include                           STDLIB.H
  16375.  
  16376.  func                              Function to call on exit
  16377.  
  16378.  Returns                           A pointer to the function if successful;
  16379.                                    NULL if there is no space left to store
  16380.                                    the function pointer
  16381.  
  16382.  Creates a register of functions to be called (last-in, first-out) when the
  16383.  program terminates normally.
  16384.  
  16385.   ANSI   DOS   OS/2   UNIX   XENIX
  16386.  
  16387.  
  16388.  
  16389.  open
  16390.  ────────────────────────────────────────────────────────────────────────────
  16391.  
  16392.    int open( char *filename, int oflag [[, int pmode]] );
  16393.  
  16394.  Include                           SYS\TYPES.H, SYS\STAT.H, IO.H, ERRNO.H,
  16395.                                    FCNTL.H
  16396.  
  16397.  filename                          File path name
  16398.  
  16399.  oflag                             O_APPEND, O_BINARY, O_CREAT, O_EXCL,
  16400.                                    O_RDONLY, O_RDWR, O_TEXT, O_TRUNC,
  16401.                                    O_WRONLY
  16402.  
  16403.  pmode                             S_IWRITE, S_IREAD, S_IREAD | S_IWRITE
  16404.  
  16405.  Returns                           A handle for the opened file if
  16406.                                    successful; -1 if not
  16407.  
  16408.  errno                             EACCESS, EEXIST, EINVAL, EMFILE, ENOENT
  16409.  
  16410.  Opens the file specified by filename and prepares the file for subsequent
  16411.  reading or writing, as defined by oflag and, optionally, pmode.
  16412.  
  16413.   ANSI   DOS   OS/2   UNIX   XENIX
  16414.  
  16415.  
  16416.  
  16417.  _outgtext
  16418.  ────────────────────────────────────────────────────────────────────────────
  16419.  
  16420.    void _far _outgtext( unsigned char _far *text );
  16421.  
  16422.  Include                           GRAPH.H
  16423.  
  16424.  text                              Text to be output
  16425.  
  16426.  Return                            No return value
  16427.  
  16428.  Outputs the null-terminated string text using the current font and rotation
  16429.  on the screen at the current graphics-output position.
  16430.  
  16431.   ANSI   DOS   OS/2   UNIX   XENIX
  16432.  
  16433.  
  16434.  
  16435.  _outmem
  16436.  ────────────────────────────────────────────────────────────────────────────
  16437.  
  16438.    void _far _outmem( unsigned char _far *text, short length );
  16439.  
  16440.  Include                           GRAPH.H
  16441.  
  16442.  text                              Text to be output
  16443.  
  16444.  length                            Number of characters to be output
  16445.  
  16446.  Returns                           No return value
  16447.  
  16448.  Outputs the specified number of characters from a buffer.
  16449.  
  16450.   ANSI   DOS   OS/2   UNIX   XENIX
  16451.  
  16452.  
  16453.  
  16454.  outp
  16455.  ────────────────────────────────────────────────────────────────────────────
  16456.  
  16457.    int outp( unsigned port, int databyte );
  16458.  
  16459.  Include                           CONIO.H
  16460.  
  16461.  port                              Port number
  16462.  
  16463.  databyte                          Output value
  16464.  
  16465.  Returns                           The output data
  16466.  
  16467.  Writes a byte to the specified output port. (Note: For protected-mode
  16468.  libraries, use a .DEF file containing this line: SEGMENTS _IOSEG CLASS,
  16469.  "IOSEG_CODE" IOPL.)
  16470.  
  16471.   ANSI   DOS   OS/2   UNIX   XENIX
  16472.  
  16473.  
  16474.  
  16475.  outpw
  16476.  ────────────────────────────────────────────────────────────────────────────
  16477.  
  16478.    unsigned outpw( unsigned port, unsigned dataword );
  16479.  
  16480.  Include                           CONIO.H
  16481.  
  16482.  port                              Port number
  16483.  
  16484.  dataword                          Output value
  16485.  
  16486.  Returns                           The output data
  16487.  
  16488.  Writes a word to the specified output port. (Note: For protected-mode
  16489.  libraries, use a .DEF file containing this line: SEGMENTS _IOSEG CLASS
  16490.  "IOSEG_CODE" IOPL.)
  16491.  
  16492.   ANSI   DOS   OS/2   UNIX   XENIX
  16493.  
  16494.  
  16495.  
  16496.  _outtext
  16497.  ────────────────────────────────────────────────────────────────────────────
  16498.  
  16499.    void _far _outtext( unsigned char _far *text );
  16500.  
  16501.  Include                           GRAPH.H
  16502.  
  16503.  text                              Text to be output
  16504.  
  16505.  Return                            No return value
  16506.  
  16507.  Outputs the null-terminated string, text, at the current text position using
  16508.  the current text color.
  16509.  
  16510.   ANSI   DOS   OS/2   UNIX   XENIX
  16511.  
  16512.  
  16513.  
  16514.  _pclose
  16515.  ────────────────────────────────────────────────────────────────────────────
  16516.  
  16517.    int _pclose( FILE *stream );
  16518.  
  16519.  Include                           STDIO.H
  16520.  
  16521.  stream                            Return value from previous call to
  16522.                                    _popen
  16523.  
  16524.  Returns                           The exit status of the child command if
  16525.                                    successful; -1 if not
  16526.  
  16527.  Closes stream and waits for the associated child command.
  16528.  
  16529.   ANSI   DOS   OS/2   UNIX   XENIX
  16530.  
  16531.  
  16532.  
  16533.  perror
  16534.  ────────────────────────────────────────────────────────────────────────────
  16535.  
  16536.    void perror( const char *string );
  16537.  
  16538.  Include                           STDIO.H
  16539.  
  16540.  string                            User-supplied message
  16541.  
  16542.  Returns                           No return value
  16543.  
  16544.  Prints an error message to stderr. The string argument is printed first,
  16545.  followed by a colon, then by the system error message for the last library
  16546.  call that produced the error, and finally by a newline character.
  16547.  
  16548.   ANSI   DOS   OS/2   UNIX   XENIX
  16549.  
  16550.  
  16551.  
  16552.  _pg_analyzechart
  16553.  ────────────────────────────────────────────────────────────────────────────
  16554.  
  16555.    short _far _pg_analyzechart( chartenv _far *env, char _far * _far
  16556.    *categories,
  16557.    float _far *values, short n );
  16558.  
  16559.  Include                           PGCHART.H
  16560.  
  16561.  env                               Chart environment variable
  16562.  
  16563.  categories                        Array of category variables
  16564.  
  16565.  values                            Array of data values
  16566.  
  16567.  n                                 Number of data values to chart
  16568.  
  16569.  Returns                           0 if successful; a nonzero value if not
  16570.  
  16571.  Analyzes a single series of data and fills the chart environment with
  16572.  default values for a single-series bar, column, or line chart, depending on
  16573.  the type specified in the function call.
  16574.  
  16575.   ANSI   DOS   OS/2   UNIX   XENIX
  16576.  
  16577.  
  16578.  
  16579.  _pg_analyzechartms
  16580.  ────────────────────────────────────────────────────────────────────────────
  16581.  
  16582.    short _far _pg_analyzechartms( chartenv _far *env, char _far * _far
  16583.    *categories,
  16584.    float _far *values, short nseries, short n, short arraydim,
  16585.    char _far * _far *serieslabels );
  16586.  
  16587.  Include                           PGCHART.H
  16588.  
  16589.  env                               Chart environment variable
  16590.  
  16591.  categories                        Array of category variables
  16592.  
  16593.  values                            Array of data values
  16594.  
  16595.  nseries                           Number of series to chart
  16596.  
  16597.  n                                 Number of data values to chart
  16598.  
  16599.  arraydim                          Row dimension of data array
  16600.  
  16601.  serieslabels                      Array of labels for series
  16602.  
  16603.  Returns                           0 if successful; a nonzero value if not
  16604.  
  16605.  Analyzes a multiple series of data and fills the chart environment with
  16606.  default values for a multiseries bar, column, or line chart, depending on
  16607.  which type is specified in the function call.
  16608.  
  16609.   ANSI   DOS   OS/2   UNIX   XENIX
  16610.  
  16611.  
  16612.  
  16613.  _pg_analyzepie
  16614.  ────────────────────────────────────────────────────────────────────────────
  16615.  
  16616.    short _far _pg_analyzepie( chartenv _far *env, char _far * _far
  16617.    *categories,
  16618.    float _far *values, short _far *explode, short n );
  16619.  
  16620.  Include                           PGCHART.H
  16621.  
  16622.  env                               Chart environment structure
  16623.  
  16624.  categories                        Array of category labels
  16625.  
  16626.  values                            Array of data values
  16627.  
  16628.  explode                           Array of explode flags
  16629.  
  16630.  n                                 Number of data values to chart
  16631.  
  16632.  Returns                           0 if successful; a nonzero value if not
  16633.  
  16634.  Analyzes a single series of data and fills the chart environment for a pie
  16635.  chart using the data contained in the array values.
  16636.  
  16637.   ANSI   DOS   OS/2   UNIX   XENIX
  16638.  
  16639.  
  16640.  
  16641.  _pg_analyzescatter
  16642.  ────────────────────────────────────────────────────────────────────────────
  16643.  
  16644.    short _far _pg_analyzescatter( chartenv _far *env, float _far *xvalues,
  16645.    float _far *yvalues, short n );
  16646.  
  16647.  Include                           PGCHART.H
  16648.  
  16649.  env                               Chart environment structure
  16650.  
  16651.  xvalues                           Array of x-axis data values
  16652.  
  16653.  yvalues                           Array of y-axis data values
  16654.  
  16655.  n                                 Number of data values to chart
  16656.  
  16657.  Returns                           0 if successful; a nonzero value if not
  16658.  
  16659.  Analyzes a single series of data and fills the chart environment for a
  16660.  single-series scatter diagram.
  16661.  
  16662.   ANSI   DOS   OS/2   UNIX   XENIX
  16663.  
  16664.  
  16665.  
  16666.  _pg_analyzescatterms
  16667.  ────────────────────────────────────────────────────────────────────────────
  16668.  
  16669.    short _far _pg_analyzescatterms( chartenv _far *env, float _far *xvalues,
  16670.    float _far *yvalues, short nseries, short n, short rowdim,
  16671.    char _far * _far *serieslabels );
  16672.  
  16673.  Include                           PGCHART.H
  16674.  
  16675.  env                               Chart environment structure
  16676.  
  16677.  xvalues                           Array of x-axis data values
  16678.  
  16679.  yvalues                           Array of y-axis data values
  16680.  
  16681.  nseries                           Number of series to chart
  16682.  
  16683.  n                                 Number of data values to chart
  16684.  
  16685.  rowdim                            Row dimension of data array
  16686.  
  16687.  serieslabels                      Array of labels for series
  16688.  
  16689.  Returns                           0 if successful; a nonzero value if not
  16690.  
  16691.  Analyzes a multiple series of data and fills the chart environment for a
  16692.  multiseries scatter diagram.
  16693.  
  16694.   ANSI   DOS   OS/2   UNIX   XENIX
  16695.  
  16696.  
  16697.  
  16698.  _pg_chart
  16699.  ────────────────────────────────────────────────────────────────────────────
  16700.  
  16701.    short _far _pg_chart( chartenv _far *env, char _far * _far *categories,
  16702.    float _far *values, short n );
  16703.  
  16704.  Include                           PGCHART.H
  16705.  
  16706.  env                               Chart environment variable
  16707.  
  16708.  categories                        Array of category variables
  16709.  
  16710.  values                            Array of data values
  16711.  
  16712.  n                                 Number of data values to chart
  16713.  
  16714.  Returns                           0 if successful; a nonzero value if not
  16715.  
  16716.  Displays a single-series bar, column, or line chart, depending on the type
  16717.  specified in the chart environment variable.
  16718.  
  16719.   ANSI   DOS   OS/2   UNIX   XENIX
  16720.  
  16721.  
  16722.  
  16723.  _pg_chartms
  16724.  ────────────────────────────────────────────────────────────────────────────
  16725.  
  16726.    short _far _pg_chartms( chartenv _far *env, char _far * _far *categories,
  16727.    float _far *values, short nseries, short n, short arraydim,
  16728.    char _far * _far *serieslabels );
  16729.  
  16730.  Include                           PGCHART.H
  16731.  
  16732.  env                               Chart environment variable
  16733.  
  16734.  categories                        Array of category variables
  16735.  
  16736.  values                            Array of data values
  16737.  
  16738.  nseries                           Number of series to chart
  16739.  
  16740.  n                                 Number of data values to chart
  16741.  
  16742.  arraydim                          Row dimension of data array
  16743.  
  16744.  serieslabels                      Array of labels for series
  16745.  
  16746.  Returns                           0 if successful; a nonzero value if not
  16747.  
  16748.  Displays a multiseries bar, column, or line chart, depending on the type
  16749.  specified in the chart environment.
  16750.  
  16751.   ANSI   DOS   OS/2   UNIX   XENIX
  16752.  
  16753.  
  16754.  
  16755.  _pg_chartpie
  16756.  ────────────────────────────────────────────────────────────────────────────
  16757.  
  16758.    short _far _pg_chartpie( chartenv _far *env, char _far * _far *categories,
  16759.    float _far *values, short _far *explode, short n );
  16760.  
  16761.  Include                           PGCHART.H
  16762.  
  16763.  env                               Chart environment structure
  16764.  
  16765.  categories                        Array of category labels
  16766.  
  16767.  values                            Array of data values
  16768.  
  16769.  explode                           Array of explode flags
  16770.  
  16771.  n                                 Number of data values to chart
  16772.  
  16773.  Returns                           0 if successful; a nonzero value if not
  16774.  
  16775.  Displays a pie chart for the data contained in the array values. Pie charts
  16776.  are formed from a single series of data (there is no multiseries version of
  16777.  pie charts as there is for other chart types).
  16778.  
  16779.   ANSI   DOS   OS/2   UNIX   XENIX
  16780.  
  16781.  
  16782.  
  16783.  _pg_chartscatter
  16784.  ────────────────────────────────────────────────────────────────────────────
  16785.  
  16786.    short _far _pg_chartscatter( chartenv _far *env, float _far *xvalues,
  16787.    float _far *yvalues, short n );
  16788.  
  16789.  Include                           PGCHART.H
  16790.  
  16791.  env                               Chart environment structure
  16792.  
  16793.  xvalues                           Array of x-axis data values
  16794.  
  16795.  yvalues                           Array of y-axis data values
  16796.  
  16797.  n                                 Number of data values to chart
  16798.  
  16799.  Returns                           0 if successful; a nonzero value if not
  16800.  
  16801.  Displays a scatter diagram for a single series of data.
  16802.  
  16803.   ANSI   DOS   OS/2   UNIX   XENIX
  16804.  
  16805.  
  16806.  
  16807.  _pg_chartscatterms
  16808.  ────────────────────────────────────────────────────────────────────────────
  16809.  
  16810.    short _far _pg_chartscatterms( chartenv _far *env, float _far *xvalues,
  16811.    float _far *yvalues, short nseries, short n, short rowdim,
  16812.    char _far * _far *serieslabels );
  16813.  
  16814.  Include                           PGCHART.H
  16815.  
  16816.  env                               Chart environment structure
  16817.  
  16818.  xvalues                           Array of x-axis data values
  16819.  
  16820.  yvalues                           Array of y-axis data values
  16821.  
  16822.  nseries                           Number of series to chart
  16823.  
  16824.  n                                 Number of data values to chart
  16825.  
  16826.  rowdim                            Row dimension of data array
  16827.  
  16828.  serieslabels                      Array of labels for series
  16829.  
  16830.  Returns                           0 if successful; a nonzero value if not
  16831.  
  16832.  Displays a scatter diagram for more than one series of data.
  16833.  
  16834.   ANSI   DOS   OS/2   UNIX   XENIX
  16835.  
  16836.  
  16837.  
  16838.  _pg_defaultchart
  16839.  ────────────────────────────────────────────────────────────────────────────
  16840.  
  16841.    short _far _pg_defaultchart( chartenv _far *env, short charttype, short
  16842.    chartstyle );
  16843.  
  16844.  Include                           PGCHART.H
  16845.  
  16846.  env                               Chart environment structure
  16847.  
  16848.  charttype                         _PG_BARCHART, _PG_COLUMNCHART,
  16849.                                    _PG_LINECHART, _PG_SCATTERCHART,
  16850.                                    _PG_PIECHART
  16851.  
  16852.  chartstyle                        Chart style 1 or 2
  16853.  
  16854.  Returns                           0 if successful; a nonzero value if not
  16855.  
  16856.  Initializes all necessary variables in the chart environment for the chart
  16857.  type by the variable charttype.
  16858.  
  16859.   ANSI   DOS   OS/2   UNIX   XENIX
  16860.  
  16861.  
  16862.  
  16863.  _pg_getchardef
  16864.  ────────────────────────────────────────────────────────────────────────────
  16865.  
  16866.    short _far _pg_getchardef( short charnum, unsigned char _far *chardef );
  16867.  
  16868.  Include                           PGCHART.H
  16869.  
  16870.  charnum                           ASCII number of character
  16871.  
  16872.  chardef                           Pointer to 8-by-8 bit map array
  16873.  
  16874.  Returns                           0 if successful; a nonzero value if not
  16875.  
  16876.  Retrieves the current 8-by-8 pixel bit map for the character with the ASCII
  16877.  number charnum. The bit map is stored in the chardef array.
  16878.  
  16879.   ANSI   DOS   OS/2   UNIX   XENIX
  16880.  
  16881.  
  16882.  
  16883.  _pg_getpalette
  16884.  ────────────────────────────────────────────────────────────────────────────
  16885.  
  16886.    short _far _pg_getpalette( paletteentry _far *palette );
  16887.  
  16888.  Include                           PGCHART.H
  16889.  
  16890.  palette                           Pointer to first palette structure in
  16891.                                    array
  16892.  
  16893.  Returns                           0 if successful; _BADSCREENMODE if
  16894.                                    current palettes have not been
  16895.                                    initialized by a previous call to
  16896.                                    _pg_setpalette
  16897.  
  16898.  Retrieves palette colors, line styles, fill patterns, and plot characters
  16899.  for all palettes. The pointer palette points to an array of palette
  16900.  structures that will contain the desired palette values.
  16901.  
  16902.   ANSI   DOS   OS/2   UNIX   XENIX
  16903.  
  16904.  
  16905.  
  16906.  _pg_getstyleset
  16907.  ────────────────────────────────────────────────────────────────────────────
  16908.  
  16909.    void _far _pg_getstyleset( unsigned short _far *styleset );
  16910.  
  16911.  Include                           PGCHART.H
  16912.  
  16913.  styleset                          Pointer to current styleset
  16914.  
  16915.  Return                            No return value
  16916.  
  16917.  Retrieves the contents of the current styleset.
  16918.  
  16919.   ANSI   DOS   OS/2   UNIX   XENIX
  16920.  
  16921.  
  16922.  
  16923.  _pg_hlabelchart
  16924.  ────────────────────────────────────────────────────────────────────────────
  16925.  
  16926.    short _far _pg_hlabelchart( chartenv _far *env, short x, short y, short
  16927.    color,
  16928.    char _far *label );
  16929.  
  16930.  Include                           PGCHART.H
  16931.  
  16932.  env                               Chart environment structure
  16933.  
  16934.  x                                 Pixel x-coordinate for text
  16935.  
  16936.  y                                 Pixel y-coordinate for text
  16937.  
  16938.  color                             Color code for text
  16939.  
  16940.  label                             Label text
  16941.  
  16942.  Returns                           0 if successful; a nonzero value if not
  16943.  
  16944.  Writes text horizontally on the screen. The arguments x and y are pixel
  16945.  coordinates for the beginning location of text relative to the upper left
  16946.  corner of the chart window.
  16947.  
  16948.   ANSI   DOS   OS/2   UNIX   XENIX
  16949.  
  16950.  
  16951.  
  16952.  _pg_initchart
  16953.  ────────────────────────────────────────────────────────────────────────────
  16954.  
  16955.    short _far _pg_initchart( void );
  16956.  
  16957.  Include                           PGCHART.H
  16958.  
  16959.  Returns                           0 if successful; a nonzero value if not
  16960.  
  16961.  Initializes the presentation graphics package. It initializes the color and
  16962.  style pools, resets the chartline styleset, builds default palette modes,
  16963.  and reads the presentation graphics character font definition from the disk.
  16964.  This function is required in all programs that use presentation graphics.
  16965.  
  16966.   ANSI   DOS   OS/2   UNIX   XENIX
  16967.  
  16968.  
  16969.  
  16970.  _pg_resetpalette
  16971.  ────────────────────────────────────────────────────────────────────────────
  16972.  
  16973.    short _far _pg_resetpalette( void );
  16974.  
  16975.  Include                           PGCHART.H
  16976.  
  16977.  Returns                           0 if successful; _BADSCREENMODE if the
  16978.                                    screen mode is not valid
  16979.  
  16980.  Sets the palette colors, line styles, fill patterns, and plot characters for
  16981.  the palette to the default for the current screen mode.
  16982.  
  16983.   ANSI   DOS   OS/2   UNIX   XENIX
  16984.  
  16985.  
  16986.  
  16987.  _pg_resetstyleset
  16988.  ────────────────────────────────────────────────────────────────────────────
  16989.  
  16990.    void _far _pg_resetstyleset( void );
  16991.  
  16992.  Include                           PGCHART.H
  16993.  
  16994.  Returns                           No return value
  16995.  
  16996.  Reinitializes the styleset to the default values for the current screen
  16997.  mode.
  16998.  
  16999.   ANSI   DOS   OS/2   UNIX   XENIX
  17000.  
  17001.  
  17002.  
  17003.  _pg_setchardef
  17004.  ────────────────────────────────────────────────────────────────────────────
  17005.  
  17006.    short _far _pg_setchardef( short charnum, unsigned char _far *chardef );
  17007.  
  17008.  Include                           PGCHART.H
  17009.  
  17010.  charnum                           ASCII number of character
  17011.  
  17012.  chardef                           Pointer to 8-by-8 bit map array
  17013.  
  17014.  Returns                           No return value
  17015.  
  17016.  Sets the 8-by-8 pixel bit map for the character with the ASCII number
  17017.  charnum. The bit map is stored in the chardef array.
  17018.  
  17019.   ANSI   DOS   OS/2   UNIX   XENIX
  17020.  
  17021.  
  17022.  
  17023.  _pg_setpalette
  17024.  ────────────────────────────────────────────────────────────────────────────
  17025.  
  17026.    short _far _pg_setpalette( paletteentry _far *palette );
  17027.  
  17028.  Include                           PGCHART.H
  17029.  
  17030.  palette                           Pointer to first palette structure in
  17031.                                    array
  17032.  
  17033.  Returns                           0 if successful; _BADSCREENMODE if the
  17034.                                    new palettes are not valid
  17035.  
  17036.  Sets palette colors, line styles, fill patterns, and plot characters for all
  17037.  palettes. The pointer palette points to an array of palette structures that
  17038.  contains the desired palette values.
  17039.  
  17040.   ANSI   DOS   OS/2   UNIX   XENIX
  17041.  
  17042.  
  17043.  
  17044.  _pg_setstyleset
  17045.  ────────────────────────────────────────────────────────────────────────────
  17046.  
  17047.    void _far _pg_setstyleset( unsigned short _far *styleset );
  17048.  
  17049.  Include                           PGCHART.H
  17050.  
  17051.  styleset                          Pointer to new styleset
  17052.  
  17053.  Returns                           No return value
  17054.  
  17055.  Sets the current styleset.
  17056.  
  17057.   ANSI   DOS   OS/2   UNIX   XENIX
  17058.  
  17059.  
  17060.  
  17061.  _pg_vlabelchart
  17062.  ────────────────────────────────────────────────────────────────────────────
  17063.  
  17064.    short _far _pg_vlabelchart( chartenv _far *env, short x, short y, short
  17065.    color, char _far *label );
  17066.  
  17067.  Include                           PGCHART.H
  17068.  
  17069.  env                               Chart environment structure
  17070.  
  17071.  x                                 Pixel x-coordinate for text
  17072.  
  17073.  y                                 Pixel y-coordinate for text
  17074.  
  17075.  color                             Color code for text
  17076.  
  17077.  label                             Label text
  17078.  
  17079.  Returns                           0 if successful; a nonzero value if not
  17080.  
  17081.  Writes text vertically on the screen. The arguments x and y are pixel
  17082.  coordinates for the beginning location of text relative to the upper left
  17083.  corner of the chart window.
  17084.  
  17085.   ANSI   DOS   OS/2   UNIX   XENIX
  17086.  
  17087.  
  17088.  
  17089.  _pie
  17090.  ────────────────────────────────────────────────────────────────────────────
  17091.  
  17092.    short _far _pie( short control, short x1, short y1, short x2, short y2,
  17093.    short x3, short y3, short x4, short y4 );
  17094.  
  17095.  Include                           GRAPH.H
  17096.  
  17097.  control                           _GBORDER, _GFILLINTERIOR
  17098.  
  17099.  x1, y1                            Upper left corner of bounding rectangle
  17100.  
  17101.  x2, y2                            Lower right corner of bounding rectangle
  17102.  
  17103.  x3, y3                            Start vector
  17104.  
  17105.  x4, y4                            End vector
  17106.  
  17107.  Returns                           A nonzero value if successful; 0 if not
  17108.  
  17109.  Draws a pie-shaped wedge by drawing an elliptical arc whose center and two
  17110.  endpoints are joined by lines. Points are defined using the view coordinate
  17111.  system.
  17112.  
  17113.   ANSI   DOS   OS/2   UNIX   XENIX
  17114.  
  17115.  
  17116.  
  17117.  _pie_w
  17118.  ────────────────────────────────────────────────────────────────────────────
  17119.  
  17120.    short _far _pie_w( short control, double x1, double y1, double x2, double
  17121.    y2,
  17122.    double x3, double y3, double x4, double y4 );
  17123.  
  17124.  Include                           GRAPH.H
  17125.  
  17126.  control                           Fill-control constant
  17127.  
  17128.  x1, y1                            Upper left corner of bounding rectangle
  17129.  
  17130.  x2, y2                            Lower right corner of bounding rectangle
  17131.  
  17132.  x3, y3                            Start vector
  17133.  
  17134.  x4, y4                            End vector
  17135.  
  17136.  Returns                           A nonzero value if successful; 0 if not
  17137.  
  17138.  Draws a pie-shaped wedge by drawing an elliptical arc whose center and two
  17139.  endpoints are joined by lines. Points are defined using the window
  17140.  coordinate system.
  17141.  
  17142.   ANSI   DOS   OS/2   UNIX   XENIX
  17143.  
  17144.  
  17145.  
  17146.  _pie_wxy
  17147.  ────────────────────────────────────────────────────────────────────────────
  17148.  
  17149.    short _far _pie_wxy( short control, struct _wxycoord _far *pwxy1,
  17150.    struct _wxycoord _far *pwxy2, struct _wxycoord _far *pwxy3,
  17151.    struct _wxycoord _far *pwxy4 );
  17152.  
  17153.  Include                           GRAPH.H
  17154.  
  17155.  control                           _GBORDER, _GFILLINTERIOR
  17156.  
  17157.  pwxy1                             Upper left corner of bounding rectangle
  17158.  
  17159.  pwxy2                             Lower right corner of bounding rectangle
  17160.  
  17161.  pwxy3                             Start vector
  17162.  
  17163.  pwxy4                             End vector
  17164.  
  17165.  Returns                           A nonzero value if successful; 0 if not
  17166.  
  17167.  Draws a pie-shaped wedge by drawing an elliptical arc whose center and two
  17168.  endpoints are joined by lines. Points are defined using the window
  17169.  coordinate system.
  17170.  
  17171.   ANSI   DOS   OS/2   UNIX   XENIX
  17172.  
  17173.  
  17174.  
  17175.  _pipe
  17176.  ────────────────────────────────────────────────────────────────────────────
  17177.  
  17178.    int _pipe( int *phandles, unsigned int psize, int textmode );
  17179.  
  17180.  Include                           IO.H, FCNTL.H, ERRNO.H
  17181.  
  17182.  phandles                          Pointer to read and write handles (
  17183.                                    phandles[0] and phandles[1],
  17184.                                    respectively)
  17185.  
  17186.  psize                             Amount of memory, in bytes, reserved for
  17187.                                    the pipe
  17188.  
  17189.  textmode                          O_BINARY, O_TEXT
  17190.  
  17191.  Returns                           0 if successful; -1 if not
  17192.  
  17193.  errno                             EMFILE, ENFILE
  17194.  
  17195.  Creates a pipe for both reading and writing, generally in preparation for
  17196.  linking it to a child process.
  17197.  
  17198.   ANSI   DOS   OS/2   UNIX   XENIX
  17199.  
  17200.  
  17201.  
  17202.  _polygon
  17203.  ────────────────────────────────────────────────────────────────────────────
  17204.  
  17205.    short _far _polygon( short control, struct xycoord _far *points, short
  17206.    numpoints );
  17207.  
  17208.  Include                           GRAPH.H
  17209.  
  17210.  control                           _GFILLINTERIOR, _GBORDER
  17211.  
  17212.  points                            Array of xycoord structures specifying
  17213.                                    the polygon's vertices
  17214.  
  17215.  numpoints                         Number of vertices
  17216.  
  17217.  Returns                           A nonzero value if anything is drawn; 0
  17218.                                    if nothing is drawn
  17219.  
  17220.  Draws or scan-fills a polygon, using the view coordinate system.
  17221.  
  17222.   ANSI   DOS   OS/2   UNIX   XENIX
  17223.  
  17224.  
  17225.  
  17226.  _polygon_w
  17227.  ────────────────────────────────────────────────────────────────────────────
  17228.  
  17229.    short _far _polygon_w( short control, double _far *points, short numpoints
  17230.    );
  17231.  
  17232.  Include                           GRAPH.H
  17233.  
  17234.  control                           _GFILLINTERIOR, _GBORDER
  17235.  
  17236.  points                            Values specifying the polygon's vertices
  17237.  
  17238.  numpoints                         Number of vertices
  17239.  
  17240.  Returns                           A nonzero value if anything is drawn; 0
  17241.                                    if nothing is drawn
  17242.  
  17243.  Draws or scan-fills a polygon, using the window coordinate system.
  17244.  
  17245.   ANSI   DOS   OS/2   UNIX   XENIX
  17246.  
  17247.  
  17248.  
  17249.  _polygon_wxy
  17250.  ────────────────────────────────────────────────────────────────────────────
  17251.  
  17252.    short _far _polygon_wxy( short control, struct _wxycoord _far *points,
  17253.    short numpoints );
  17254.  
  17255.  Include                           GRAPH.H
  17256.  
  17257.  control                           _GFILLINTERIOR, _GBORDER
  17258.  
  17259.  points                            Array of _wxycoord structures specifying
  17260.                                    the polygon's vertices
  17261.  
  17262.  numpoints                         Number of vertices
  17263.  
  17264.  Returns                           A nonzero value if anything is drawn; 0
  17265.                                    if nothing is drawn
  17266.  
  17267.  Draws or scan-fills a polygon, using the window coordinate system.
  17268.  
  17269.   ANSI   DOS   OS/2   UNIX   XENIX
  17270.  
  17271.  
  17272.  
  17273.  _popen
  17274.  ────────────────────────────────────────────────────────────────────────────
  17275.  
  17276.    FILE *  _popen( char *command, char *mode );
  17277.  
  17278.  Include                           STDIO.H
  17279.  
  17280.  command                           Command string
  17281.  
  17282.  mode                              Access permissions: "r", "rt", "rb", "w",
  17283.                                    "wt", "wb"
  17284.  
  17285.  Returns                           A stream associated with one end of the
  17286.                                    pipe if successful; NULL
  17287.                                    if not
  17288.  
  17289.  Creates a pipe and asynchronously executes a child copy of the command
  17290.  processor.
  17291.  
  17292.   ANSI   DOS   OS/2   UNIX   XENIX
  17293.  
  17294.  
  17295.  
  17296.  pow
  17297.  ────────────────────────────────────────────────────────────────────────────
  17298.  
  17299.    double pow( double x, double y );
  17300.  
  17301.  Include                           MATH.H, ERRNO.H
  17302.  
  17303.  x                                 Number to be raised
  17304.  
  17305.  y                                 Power of x
  17306.  
  17307.  Returns                           The value of x y; 1 if x is not 0 and y
  17308.                                    is 0;  HUGE_VAL if x is 0 and y is
  17309.                                    negative; 0 if both x and y are 0 or if
  17310.                                    x is negative and y is not an integer
  17311.  
  17312.  errno                             EDOM, ERANGE
  17313.  
  17314.  Computes the value of x y.
  17315.  
  17316.   ANSI   DOS   OS/2   UNIX   XENIX
  17317.  
  17318.  
  17319.  
  17320.  powl
  17321.  ────────────────────────────────────────────────────────────────────────────
  17322.  
  17323.    long double powl( long double x, long double y );
  17324.  
  17325.  Include                           MATH.H, ERRNO.H
  17326.  
  17327.  x                                 Number to be raised
  17328.  
  17329.  y                                 Power of x
  17330.  
  17331.  Returns                           The value of xy; 1 if x is not 0 and y
  17332.                                    is 0;  _LHUGE_VAL if x is 0 and y is
  17333.                                    negative; 0 if both x and y are 0 or if
  17334.                                    x is negative and y is not an integer
  17335.  
  17336.  errno                             EDOM, ERANGE
  17337.  
  17338.  Computes the value of xy. Long double-precision floating-point version of
  17339.  pow.
  17340.  
  17341.   ANSI   DOS   OS/2   UNIX   XENIX
  17342.  
  17343.  
  17344.  
  17345.  printf
  17346.  ────────────────────────────────────────────────────────────────────────────
  17347.  
  17348.    int printf( const char *format [[, argument ]]... );
  17349.  
  17350.  Include                           STDIO.H
  17351.  
  17352.  format                            Format-control string
  17353.  
  17354.  argument                          Optional arguments, variables of the
  17355.                                    type specified in the formatcontrol
  17356.                                    string
  17357.  
  17358.  Returns                           The number of characters printed if
  17359.                                    successful; a negative value if not
  17360.  
  17361.  Formats and prints a series of characters and values to the standard output
  17362.  stream, stdout.
  17363.  
  17364.   ANSI   DOS   OS/2   UNIX   XENIX
  17365.  
  17366.  
  17367.  
  17368.  putc
  17369.  ────────────────────────────────────────────────────────────────────────────
  17370.  
  17371.    int putc( int c, FILE *stream );
  17372.  
  17373.  Include                           STDIO.H
  17374.  
  17375.  c                                 Character to be written
  17376.  
  17377.  stream                            Pointer to target stream
  17378.  
  17379.  Returns                           The character written if successful; EOF
  17380.                                    may indicate failure
  17381.  
  17382.  Writes the single character c to the output stream at the current position.
  17383.  
  17384.  
  17385.   ANSI   DOS   OS/2   UNIX   XENIX
  17386.  
  17387.  
  17388.  
  17389.  putch
  17390.  ────────────────────────────────────────────────────────────────────────────
  17391.  
  17392.    int putch( int c );
  17393.  
  17394.  Include                           CONIO.H
  17395.  
  17396.  c                                 Character to be output
  17397.  
  17398.  Returns                           c if successful; EOF if not
  17399.  
  17400.  Writes the character c directly to the console.
  17401.  
  17402.   ANSI   DOS   OS/2   UNIX   XENIX
  17403.  
  17404.  
  17405.  
  17406.  putchar
  17407.  ────────────────────────────────────────────────────────────────────────────
  17408.  
  17409.    int putchar( int c );
  17410.  
  17411.  Include                           STDIO.H
  17412.  
  17413.  c                                 Character to be written
  17414.  
  17415.  Returns                           The character written if successful; EOF
  17416.                                    may indicate failure
  17417.  
  17418.  Writes the single character c to the standard output stream, stdout.
  17419.  
  17420.   ANSI   DOS   OS/2   UNIX   XENIX
  17421.  
  17422.  
  17423.  
  17424.  putenv
  17425.  ────────────────────────────────────────────────────────────────────────────
  17426.  
  17427.    int putenv( char *envstring );
  17428.  
  17429.  Include                           STDLIB.H
  17430.  
  17431.  envstring                         Environment-string definition
  17432.  
  17433.  Returns                           0 if successful; -1 if not
  17434.  
  17435.  Adds or removes an environment variable or modifies the value of an existing
  17436.  one.
  17437.  
  17438.   ANSI   DOS   OS/2   UNIX   XENIX
  17439.  
  17440.  
  17441.  
  17442.  _putimage
  17443.  ────────────────────────────────────────────────────────────────────────────
  17444.  
  17445.    void _far _putimage( short x, short y, char _huge *image, short action );
  17446.  
  17447.  Include                           GRAPH.H
  17448.  
  17449.  x, y                              Position of upper left corner of image
  17450.  
  17451.  image                             Stored image buffer
  17452.  
  17453.  action                            _GAND, _GOR, _GPRESET, _GPSET, _GXOR
  17454.  
  17455.  Returns                           No return value; check _grstatus
  17456.  
  17457.  Transfers to the screen the image stored in the buffer image, placing the
  17458.  upper left corner of the image at the view coordinate (x, y).
  17459.  
  17460.   ANSI   DOS   OS/2   UNIX   XENIX
  17461.  
  17462.  
  17463.  
  17464.  _putimage_w
  17465.  ────────────────────────────────────────────────────────────────────────────
  17466.  
  17467.    void _far _putimage_w( double wx, double wy, char _huge *image, short
  17468.    action );
  17469.  
  17470.  Include                           GRAPH.H
  17471.  
  17472.  wx, wy                            Position of upper left corner of image
  17473.  
  17474.  image                             Stored image buffer
  17475.  
  17476.  action                            _GAND, _GOR, _GPRESET, _GPSET, _GXOR
  17477.  
  17478.  Returns                           No return value; check _grstatus
  17479.  
  17480.  Transfers to the screen the image stored in the buffer image, placing the
  17481.  upper left corner of the image at the window coordinate (wx, wy).
  17482.  
  17483.   ANSI   DOS   OS/2   UNIX   XENIX
  17484.  
  17485.  
  17486.  
  17487.  puts
  17488.  ────────────────────────────────────────────────────────────────────────────
  17489.  
  17490.    int puts( const char *string );
  17491.  
  17492.  Include                           STDIO.H
  17493.  
  17494.  string                            String to be output
  17495.  
  17496.  Returns                           A nonnegative value if successful; EOF
  17497.                                    if not
  17498.  
  17499.  Writes string to the standard output stream, stdout, replacing the string's
  17500.  terminating null character ('\0') with a newline character (\n) in the
  17501.  output stream.
  17502.  
  17503.   ANSI   DOS   OS/2   UNIX   XENIX
  17504.  
  17505.  
  17506.  
  17507.  putw
  17508.  ────────────────────────────────────────────────────────────────────────────
  17509.  
  17510.    int putw( int binint, FILE *stream );
  17511.  
  17512.  Include                           STDIO.H
  17513.  
  17514.  binint                            Binary integer to be output
  17515.  
  17516.  stream                            Pointer to target stream
  17517.  
  17518.  Returns                           The value written if successful; EOF may
  17519.                                    indicate an error
  17520.  
  17521.  Writes a binary value of type int to the current position of the stream.
  17522.  
  17523.   ANSI   DOS   OS/2   UNIX   XENIX
  17524.  
  17525.  
  17526.  
  17527.  qsort
  17528.  ────────────────────────────────────────────────────────────────────────────
  17529.  
  17530.    void qsort( void *base, size_t num, size_t width,
  17531.    int( *compare )( const void *elem1, const void *elem2 ) );
  17532.  
  17533.  Include                           STDLIB.H, SEARCH.H
  17534.  
  17535.  base                              Start of array
  17536.  
  17537.  num                               Number of elements in array
  17538.  
  17539.  width                             Element size in bytes
  17540.  
  17541.  compare                           Comparison function
  17542.  
  17543.  elem1                             Pointer to key for the search
  17544.  
  17545.  elem2                             Pointer to the array element to be
  17546.                                    compared with the key
  17547.  
  17548.  Returns                           No return value
  17549.  
  17550.  Implements a quick-sort algorithm to sort an array of num elements, each of
  17551.  width bytes.
  17552.  
  17553.   ANSI   DOS   OS/2   UNIX   XENIX
  17554.  
  17555.  
  17556.  
  17557.  
  17558.  
  17559.  
  17560.  raise
  17561.  ────────────────────────────────────────────────────────────────────────────
  17562.  
  17563.    int raise( int sig );
  17564.  
  17565.  Include                           SIGNAL.H
  17566.  
  17567.  sig                               SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV,
  17568.                                    SIGTERM, SIGUSR1, SIGUSR2, SIGUSR3,
  17569.                                    SIGBREAK
  17570.  
  17571.  Returns                           0 if successful; a nonzero value if not
  17572.  
  17573.  Raises the sig signal condition in the executing program.
  17574.  
  17575.   ANSI   DOS   OS/2   UNIX   XENIX
  17576.  
  17577.  
  17578.  
  17579.  rand
  17580.  ────────────────────────────────────────────────────────────────────────────
  17581.  
  17582.    int rand( void );
  17583.  
  17584.  Include                           STDLIB.H
  17585.  
  17586.  Returns                           A pseudorandom integer in the range 0 to
  17587.                                    RAND_MAX
  17588.  
  17589.  Generates a pseudorandom number.
  17590.  
  17591.   ANSI   DOS   OS/2   UNIX   XENIX
  17592.  
  17593.  
  17594.  
  17595.  read
  17596.  ────────────────────────────────────────────────────────────────────────────
  17597.  
  17598.    int read( int handle, void *buffer, unsigned int count );
  17599.  
  17600.  Include                           IO.H, ERRNO.H
  17601.  
  17602.  handle                            Handle referring to open file
  17603.  
  17604.  buffer                            Storage location for data
  17605.  
  17606.  count                             Maximum number of bytes
  17607.  
  17608.  Returns                           The number of bytes read if successful;
  17609.                                    -1 if not
  17610.  
  17611.  errno                             EBADF
  17612.  
  17613.  Attempts to read count bytes into buffer from the file associated with
  17614.  handle.
  17615.  
  17616.   ANSI   DOS   OS/2   UNIX   XENIX
  17617.  
  17618.  
  17619.  
  17620.  realloc
  17621.  ────────────────────────────────────────────────────────────────────────────
  17622.  
  17623.    void *realloc( void *memblock, size_t size );
  17624.  
  17625.  Include                           STDLIB.H or MALLOC.H
  17626.  
  17627.  memblock                          Pointer to previously allocated memory
  17628.                                    block
  17629.  
  17630.  size                              New size in bytes
  17631.  
  17632.  Returns                           A void pointer to the reallocated memory
  17633.                                    block if successful; NULL if not
  17634.  
  17635.  Changes the size and, possibly, the location of a previously allocated
  17636.  memory block.
  17637.  
  17638.   ANSI   DOS   OS/2   UNIX   XENIX
  17639.  
  17640.  
  17641.  
  17642.  _rectangle
  17643.  ────────────────────────────────────────────────────────────────────────────
  17644.  
  17645.    short _far _rectangle( short control, short x1, short y1, short x2, short
  17646.    y2 );
  17647.  
  17648.  Include                           GRAPH.H
  17649.  
  17650.  control                           _GFILLINTERIOR, _GBORDER
  17651.  
  17652.  x1, y1                            Upper left corner
  17653.  
  17654.  x2, y2                            Lower right corner
  17655.  
  17656.  Returns                           A nonzero value if anything is drawn; 0
  17657.                                    if nothing is drawn
  17658.  
  17659.  Draws a rectangle with the current color, line style, and write mode, using
  17660.  the view coordinate system.
  17661.  
  17662.   ANSI   DOS   OS/2   UNIX   XENIX
  17663.  
  17664.  
  17665.  
  17666.  _rectangle_w
  17667.  ────────────────────────────────────────────────────────────────────────────
  17668.  
  17669.    short _far _rectangle_w( short control, double wx1, double wy1,
  17670.    double wx2, double wy2 );
  17671.  
  17672.  Include                           GRAPH.H
  17673.  
  17674.  control                           _GFILLINTERIOR, _GBORDER
  17675.  
  17676.  wx1, wy1                          Upper left corner
  17677.  
  17678.  wx2, wy2                          Lower right corner
  17679.  
  17680.  Returns                           A nonzero value if anything is drawn; 0
  17681.                                    if nothing is drawn
  17682.  
  17683.  Draws a rectangle with the current color, line style, and write mode, using
  17684.  the window coordinate system.
  17685.  
  17686.   ANSI   DOS   OS/2   UNIX   XENIX
  17687.  
  17688.  
  17689.  
  17690.  _rectangle_wxy
  17691.  ────────────────────────────────────────────────────────────────────────────
  17692.  
  17693.    short _far _rectangle_wxy( short control, struct _wxycoord _far *pwxy1,
  17694.    struct _wxycoord _far *pwxy2 );
  17695.  
  17696.  Include                           GRAPH.H
  17697.  
  17698.  control                           _GFILLINTERIOR, _GBORDER
  17699.  
  17700.  pwxy1                             Upper left corner
  17701.  
  17702.  pwxy2                             Lower right corner
  17703.  
  17704.  Returns                           A nonzero value if anything is drawn; 0
  17705.                                    if nothing is drawn
  17706.  
  17707.  Draws a rectangle with the current color, line style, and write mode, using
  17708.  the window coordinate system.
  17709.  
  17710.   ANSI   DOS   OS/2   UNIX   XENIX
  17711.  
  17712.  
  17713.  
  17714.  _registerfonts
  17715.  ────────────────────────────────────────────────────────────────────────────
  17716.  
  17717.    short _far _registerfonts( unsigned char _far *pathname );
  17718.  
  17719.  Include                           GRAPH.H
  17720.  
  17721.  pathname                          Path name specifying .FON files to be
  17722.                                    registered
  17723.  
  17724.  Returns                           The number of fonts registered if
  17725.                                    successful; a negative value if not
  17726.  
  17727.  Initializes the font graphics system. Font files must be registered with the
  17728.  _registerfonts function before any other font-related library function can
  17729.  be used.
  17730.  
  17731.   ANSI   DOS   OS/2   UNIX   XENIX
  17732.  
  17733.  
  17734.  
  17735.  _remapallpalette
  17736.  ────────────────────────────────────────────────────────────────────────────
  17737.  
  17738.    short _far _remapallpalette( long _far *colors ):
  17739.  
  17740.  Include                           GRAPH.H
  17741.  
  17742.  colors                            Array of color values
  17743.  
  17744.  Returns                           A nonzero value if successful; 0 if not
  17745.  
  17746.  Remaps all of the available colors simultaneously.
  17747.  
  17748.   ANSI   DOS   OS/2   UNIX   XENIX
  17749.  
  17750.  
  17751.  
  17752.  _remappalette
  17753.  ────────────────────────────────────────────────────────────────────────────
  17754.  
  17755.    long _far _remappalette( short index, long color );
  17756.  
  17757.  Include                           GRAPH.H
  17758.  
  17759.  index                             Color index to redefine
  17760.  
  17761.  color                             Color value to assign to index
  17762.  
  17763.  Returns                           The previous color value of index if
  17764.                                    successful; -1 if not
  17765.  
  17766.  Remaps the specified color index to color, which must be a color value
  17767.  supported by the current video configuration.
  17768.  
  17769.   ANSI   DOS   OS/2   UNIX   XENIX
  17770.  
  17771.  
  17772.  
  17773.  remove
  17774.  ────────────────────────────────────────────────────────────────────────────
  17775.  
  17776.    int remove( const char *filename );
  17777.  
  17778.  Include                           STDIO.H or IO.H, ERRNO.H
  17779.  
  17780.  filename                          Path name of file to be removed
  17781.  
  17782.  Returns                           0 if successful; a nonzero value if not
  17783.  
  17784.  errno                             EACCESS, ENOENT
  17785.  
  17786.  Deletes the file specified by filename.
  17787.  
  17788.   ANSI   DOS   OS/2   UNIX   XENIX
  17789.  
  17790.  
  17791.  
  17792.  rename
  17793.  ────────────────────────────────────────────────────────────────────────────
  17794.  
  17795.    int rename( const char *oldname, const char *newname );
  17796.  
  17797.  Include                           STDIO.H or IO.H, ERRNO.H
  17798.  
  17799.  oldname                           Pointer to old name
  17800.  
  17801.  newname                           Pointer to new name
  17802.  
  17803.  Returns                           0 if successful; a nonzero value if not
  17804.  
  17805.  errno                             EACCESS, ENOENT, EXDEV
  17806.  
  17807.  Renames the file or directory specified by oldname to the name given by
  17808.  newname.
  17809.  
  17810.   ANSI   DOS   OS/2   UNIX   XENIX
  17811.  
  17812.  
  17813.  
  17814.  rewind
  17815.  ────────────────────────────────────────────────────────────────────────────
  17816.  
  17817.    void rewind( FILE *stream );
  17818.  
  17819.  Include                           STDIO.H
  17820.  
  17821.  stream                            Pointer to target stream
  17822.  
  17823.  Returns                           No return value
  17824.  
  17825.  Repositions the file pointer associated with stream to the beginning of the
  17826.  file.
  17827.  
  17828.   ANSI   DOS   OS/2   UNIX   XENIX
  17829.  
  17830.  
  17831.  
  17832.  rmdir
  17833.  ────────────────────────────────────────────────────────────────────────────
  17834.  
  17835.    int rmdir( char *dirname );
  17836.  
  17837.  Include                           DIRECT.H, ERRNO.H
  17838.  
  17839.  dirname                           Path name of directory to be removed
  17840.  
  17841.  Returns                           0 if successful; a nonzero value if not
  17842.  
  17843.  errno                             EACCESS, ENOENT
  17844.  
  17845.  Deletes the directory specified by dirname.
  17846.  
  17847.   ANSI   DOS   OS/2   UNIX   XENIX
  17848.  
  17849.  
  17850.  
  17851.  rmtmp
  17852.  ────────────────────────────────────────────────────────────────────────────
  17853.  
  17854.    int rmtmp( void );
  17855.  
  17856.  Include                           STDIO.H
  17857.  
  17858.  Returns                           The number of temporary files closed and
  17859.                                    deleted
  17860.  
  17861.  Cleans up all the temporary files in the current directory. The function
  17862.  removes only those files created by tmpfile and should be used only in the
  17863.  same directory in which the temporary files were created.
  17864.  
  17865.   ANSI   DOS   OS/2   UNIX   XENIX
  17866.  
  17867.  
  17868.  
  17869.  _rotl
  17870.  ────────────────────────────────────────────────────────────────────────────
  17871.  
  17872.    unsigned int _rotl( unsigned int value, int shift );
  17873.  
  17874.  Include                           STDLIB.H
  17875.  
  17876.  value                             Value to be rotated
  17877.  
  17878.  shift                             Number of bits to shift
  17879.  
  17880.  Returns                           value rotated to the left by shift bits
  17881.  
  17882.  Rotates bits to the left.
  17883.  
  17884.   ANSI   DOS   OS/2   UNIX   XENIX
  17885.  
  17886.  
  17887.  
  17888.  _rotr
  17889.  ────────────────────────────────────────────────────────────────────────────
  17890.  
  17891.    unsigned int _rotr( unsigned int value, int shift );
  17892.  
  17893.  Include                           STDLIB.H
  17894.  
  17895.  value                             Value to be rotated
  17896.  
  17897.  shift                             Number of bits to shift
  17898.  
  17899.  Returns                           value rotated to the right by shift bits
  17900.  
  17901.  Rotates bits to the right.
  17902.  
  17903.   ANSI   DOS   OS/2   UNIX   XENIX
  17904.  
  17905.  
  17906.  
  17907.  scanf
  17908.  ────────────────────────────────────────────────────────────────────────────
  17909.  
  17910.    int scanf( const char *format [[, argument]]... );
  17911.  
  17912.  Include                           STDIO.H
  17913.  
  17914.  format                            Format-control string
  17915.  
  17916.  argument                          Optional arguments; pointers to
  17917.                                    variables of the types specified in the
  17918.                                    format-control string
  17919.  
  17920.  Returns                           The number of fields successfully
  17921.                                    converted and assigned; EOF if input
  17922.                                    failure occurs before any conversion
  17923.  
  17924.  Reads data from the standard input stream, stdin, into the locations given
  17925.  by an argument.
  17926.  
  17927.   ANSI   DOS   OS/2   UNIX   XENIX
  17928.  
  17929.  
  17930.  
  17931.  _scrolltextwindow
  17932.  ────────────────────────────────────────────────────────────────────────────
  17933.  
  17934.    void _far _scrolltextwindow( short lines );
  17935.  
  17936.  Include                           GRAPH.H
  17937.  
  17938.  lines                             Number of lines to scroll
  17939.  
  17940.  Returns                           No return value
  17941.  
  17942.  Scrolls the current text window. A positive value for lines scrolls the
  17943.  window up, and a negative value scrolls down.
  17944.  
  17945.   ANSI   DOS   OS/2   UNIX   XENIX
  17946.  
  17947.  
  17948.  
  17949.  _searchenv
  17950.  ────────────────────────────────────────────────────────────────────────────
  17951.  
  17952.    void _searchenv( char *filename, char *varname, char *pathname );
  17953.  
  17954.  Include                           STDLIB.H
  17955.  
  17956.  filename                          Name of file to search for
  17957.  
  17958.  varname                           Environment to search
  17959.  
  17960.  pathname                          Buffer to store complete path
  17961.  
  17962.  Returns                           No return value
  17963.  
  17964.  Searches for the target file in the specified varname domain.
  17965.  
  17966.   ANSI   DOS   OS/2   UNIX   XENIX
  17967.  
  17968.  
  17969.  
  17970.  segread
  17971.  ────────────────────────────────────────────────────────────────────────────
  17972.  
  17973.    void segread( struct SREGS *segregs );
  17974.  
  17975.  Include                           DOS.H
  17976.  
  17977.  segregs                           Segment-register values
  17978.  
  17979.  Returns                           No return value
  17980.  
  17981.  Fills the structure pointed to by segregs with the current contents of the
  17982.  segment registers.
  17983.  
  17984.   ANSI   DOS   OS/2   UNIX   XENIX
  17985.  
  17986.  
  17987.  
  17988.  _selectpalette
  17989.  ────────────────────────────────────────────────────────────────────────────
  17990.  
  17991.    short _far _selectpalette( short number );
  17992.  
  17993.  Include                           GRAPH.H
  17994.  
  17995.  number                            Palette number
  17996.  
  17997.  Returns                           The previous palette number; -1 if an
  17998.                                    error occurs
  17999.  
  18000.  Selects one of several predefined palettes, depending on video mode and
  18001.  hardware (_MRES4COLOR, _MRESNOCOLOR, and _ORESCOLOR modes only).
  18002.  
  18003.   ANSI   DOS   OS/2   UNIX   XENIX
  18004.  
  18005.  
  18006.  
  18007.  _setactivepage
  18008.  ────────────────────────────────────────────────────────────────────────────
  18009.  
  18010.    short _far _setactivepage( short page );
  18011.  
  18012.  Include                           GRAPH.H
  18013.  
  18014.  page                              Memory page number
  18015.  
  18016.  Returns                           The number of the previous active page
  18017.                                    if successful; -1 if an error occurs
  18018.  
  18019.  Specifies the area in memory where output is written for hardware and mode
  18020.  configurations with enough memory to support multiple-screen pages. Note
  18021.  that OS/2 supports only one page. Page 0 is always supported.
  18022.  
  18023.   ANSI   DOS   OS/2   UNIX   XENIX
  18024.  
  18025.  
  18026.  
  18027.  _setbkcolor
  18028.  ────────────────────────────────────────────────────────────────────────────
  18029.  
  18030.    long _far _setbkcolor( long color );
  18031.  
  18032.  Include                           GRAPH.H
  18033.  
  18034.  color                             Desired background color
  18035.  
  18036.  Returns                           The previous background color
  18037.  
  18038.  Sets the current background color to color.
  18039.  
  18040.   ANSI   DOS   OS/2   UNIX   XENIX
  18041.  
  18042.  
  18043.  
  18044.  setbuf
  18045.  ────────────────────────────────────────────────────────────────────────────
  18046.  
  18047.    void setbuf( FILE *stream, char *buffer );
  18048.  
  18049.  Include                           STDIO.H
  18050.  
  18051.  stream                            Pointer to target stream
  18052.  
  18053.  buffer                            User-allocated buffer of size BUFSIZ or
  18054.                                    NULL for no buffering
  18055.  
  18056.  Returns                           No return value
  18057.  
  18058.  Allows the user to assign a buffer or disable buffering for stream. The
  18059.  argument stream must refer to an open file before it has been read or
  18060.  written.
  18061.  
  18062.   ANSI   DOS   OS/2   UNIX   XENIX
  18063.  
  18064.  
  18065.  
  18066.  _setcliprgn
  18067.  ────────────────────────────────────────────────────────────────────────────
  18068.  
  18069.    void _far _setcliprgn( short x1, short y1, short x2, short y2 );
  18070.  
  18071.  Include                           GRAPH.H
  18072.  
  18073.  x1, y1                            Upper left corner of clip region
  18074.  
  18075.  x2, y2                            Lower right corner of clip region
  18076.  
  18077.  Returns                           No return value; check _grstatus
  18078.  
  18079.  Limits the display of subsequent graphics output and font text output to the
  18080.  part that fits within a particular area of the screen, known as the clipping
  18081.  region.
  18082.  
  18083.   ANSI   DOS   OS/2   UNIX   XENIX
  18084.  
  18085.  
  18086.  
  18087.  _setcolor
  18088.  ────────────────────────────────────────────────────────────────────────────
  18089.  
  18090.    short _far _setcolor( short color );
  18091.  
  18092.  Include                           GRAPH.H
  18093.  
  18094.  color                             Desired color index
  18095.  
  18096.  Returns                           The previous color index if successful;
  18097.                                    -1 if not
  18098.  
  18099.  Sets the current color index (used by graphics and font text output) to
  18100.  color.
  18101.  
  18102.   ANSI   DOS   OS/2   UNIX   XENIX
  18103.  
  18104.  
  18105.  
  18106.  _setfillmask
  18107.  ────────────────────────────────────────────────────────────────────────────
  18108.  
  18109.    void _far _setfillmask( unsigned char _far *mask );
  18110.  
  18111.  Include                           GRAPH.H
  18112.  
  18113.  mask                              Mask array
  18114.  
  18115.  Returns                           No return value
  18116.  
  18117.  Sets the current fill mask. The mask is an 8-by-8 array of bits, where each
  18118.  bit represents a pixel. A 1 bit sets the corresponding pixel to the current
  18119.  color, whereas a 0 bit leaves the pixel unchanged.
  18120.  
  18121.   ANSI   DOS   OS/2   UNIX   XENIX
  18122.  
  18123.  
  18124.  
  18125.  _setfont
  18126.  ────────────────────────────────────────────────────────────────────────────
  18127.  
  18128.    short _far _setfont( unsigned char _far *options );
  18129.  
  18130.  Include                           GRAPH.H
  18131.  
  18132.  options                           String describing font characteristics
  18133.  
  18134.  Returns                           The font index number if successful; a
  18135.                                    negative value if not
  18136.  
  18137.  Finds a single font from the set of registered fonts that has the
  18138.  characteristics specified by the options string and returns the index of
  18139.  that font.
  18140.  
  18141.   ANSI   DOS   OS/2   UNIX   XENIX
  18142.  
  18143.  
  18144.  
  18145.  _setgtextvector
  18146.  ────────────────────────────────────────────────────────────────────────────
  18147.  
  18148.    struct xycoord _far _setgtextvector( short x, short y );
  18149.  
  18150.  Include                           GRAPH.H
  18151.  
  18152.  x, y                              Values defining a vector that determines
  18153.                                    the direction of font text
  18154.                                    rotation
  18155.  
  18156.  Returns                           The previous vector in an xycoord
  18157.                                    structure defined in GRAPH.H
  18158.  
  18159.  Sets the current orientation for font text output. (0, 0) is ignored.
  18160.  
  18161.   ANSI   DOS   OS/2   UNIX   XENIX
  18162.  
  18163.  
  18164.  
  18165.  setjmp
  18166.  ────────────────────────────────────────────────────────────────────────────
  18167.  
  18168.    int setjmp( jmp_buf env );
  18169.  
  18170.  Include                           SETJMP.H
  18171.  
  18172.  env                               Variable in which environment is stored
  18173.  
  18174.  Returns                           0 after saving the stack environment;
  18175.                                    the value argument of longjmp if setjmp
  18176.                                    returns as a result of a longjmp call; 1
  18177.                                    if the longjmp argument is 0
  18178.  
  18179.  Saves a stack environment that can subsequently be restored using longjmp.
  18180.  Used together this way, setjmp and longjmp provide a way to execute a
  18181.  nonlocal goto.
  18182.  
  18183.   ANSI   DOS   OS/2   UNIX   XENIX
  18184.  
  18185.  
  18186.  
  18187.  _setlinestyle
  18188.  ────────────────────────────────────────────────────────────────────────────
  18189.  
  18190.    void _far _setlinestyle( unsigned short mask );
  18191.  
  18192.  Include                           GRAPH.H
  18193.  
  18194.  mask                              Desired line-style mask
  18195.  
  18196.  Returns                           No return value
  18197.  
  18198.  Selects the mask used for line drawing. The mask is a 16-bit number, where
  18199.  each bit represents a pixel in the line being drawn. If a bit is 1, the
  18200.  corresponding pixel is set to the current color. If a bit is 0, the
  18201.  corresponding pixel is left unchanged.
  18202.  
  18203.   ANSI   DOS   OS/2   UNIX   XENIX
  18204.  
  18205.  
  18206.  
  18207.  setlocale
  18208.  ────────────────────────────────────────────────────────────────────────────
  18209.  
  18210.    char *setlocale( int category, const char *locale );
  18211.  
  18212.  Include                           LOCALE.H
  18213.  
  18214.  category                          LC_ALL, LC_COLLATE, LC_TYPE, LC_MONETARY,
  18215.                                    LC_NUMERIC, LC_TIME, NULL
  18216.  
  18217.  locale                            "C"
  18218.  
  18219.  Returns                           A pointer to the string associated with
  18220.                                    category for the new locale, if valid; a
  18221.                                    null pointer if invalid
  18222.  
  18223.  Sets categories specified for a certain location.
  18224.  
  18225.   ANSI   DOS   OS/2   UNIX   XENIX
  18226.  
  18227.  
  18228.  
  18229.  setmode
  18230.  ────────────────────────────────────────────────────────────────────────────
  18231.  
  18232.    int setmode( int handle, int mode );
  18233.  
  18234.  Include                           FCNTL.H, IO.H, ERRNO.H
  18235.  
  18236.  handle                            File handle
  18237.  
  18238.  mode                              O_TEXT, O_BINARY
  18239.  
  18240.  Returns                           The previous translation mode if
  18241.                                    successful; -1 if not
  18242.  
  18243.  errno                             EBADF, EINVAL
  18244.  
  18245.  Sets the translation mode of the file given by handle to mode.
  18246.  
  18247.   ANSI   DOS   OS/2   UNIX   XENIX
  18248.  
  18249.  
  18250.  
  18251.  _setpixel
  18252.  ────────────────────────────────────────────────────────────────────────────
  18253.  
  18254.    short _far _setpixel( short x, short y );
  18255.  
  18256.  Include                           GRAPH.H
  18257.  
  18258.  x, y                              Target pixel
  18259.  
  18260.  Returns                           The previous value of the target pixel
  18261.                                    if successful; -1 if not
  18262.  
  18263.  Sets a pixel at the specified view coordinate location to the current color.
  18264.  
  18265.  
  18266.   ANSI   DOS   OS/2   UNIX   XENIX
  18267.  
  18268.  
  18269.  
  18270.  _setpixel_w
  18271.  ────────────────────────────────────────────────────────────────────────────
  18272.  
  18273.    short _far _setpixel_w( double wx, double wy );
  18274.  
  18275.  Include                           GRAPH.H
  18276.  
  18277.  wx, wy                            Target pixel
  18278.  
  18279.  Returns                           The previous value of the target pixel
  18280.                                    if successful; -1 if not
  18281.  
  18282.  Sets a pixel at the specified window coordinate location to the current
  18283.  color.
  18284.  
  18285.   ANSI   DOS   OS/2   UNIX   XENIX
  18286.  
  18287.  
  18288.  
  18289.  _settextcolor
  18290.  ────────────────────────────────────────────────────────────────────────────
  18291.  
  18292.    short _far _settextcolor( short index );
  18293.  
  18294.  Include                           GRAPH.H
  18295.  
  18296.  index                             Desired color index
  18297.  
  18298.  Returns                           The color index of the previous text
  18299.                                    attribute
  18300.  
  18301.  Sets the current text attribute to the color index specified by index.
  18302.  
  18303.   ANSI   DOS   OS/2   UNIX   XENIX
  18304.  
  18305.  
  18306.  
  18307.  _settextcursor
  18308.  ────────────────────────────────────────────────────────────────────────────
  18309.  
  18310.    short _far _settextcursor( short attr );
  18311.  
  18312.  Include                           GRAPH.H
  18313.  
  18314.  attr                              0x0707, 0x0007, 0x0607, 0x2000, etc.
  18315.  
  18316.  Returns                           The previous cursor attribute if
  18317.                                    successful; -1 if not
  18318.  
  18319.  In text modes, sets the BIOS cursor attribute (the shape) to the value
  18320.  specified by attr.
  18321.  
  18322.   ANSI   DOS   OS/2   UNIX   XENIX
  18323.  
  18324.  
  18325.  
  18326.  _settextposition
  18327.  ────────────────────────────────────────────────────────────────────────────
  18328.  
  18329.    struct rccoord _far _settextposition( short row, short column );
  18330.  
  18331.  Include                           GRAPH.H
  18332.  
  18333.  row, column                       New text output start position
  18334.  
  18335.  Returns                           The previous text position
  18336.  
  18337.  Sets the current text position to the location (row, column) within the
  18338.  current text window.
  18339.  
  18340.   ANSI   DOS   OS/2   UNIX   XENIX
  18341.  
  18342.  
  18343.  
  18344.  _settextrows
  18345.  ────────────────────────────────────────────────────────────────────────────
  18346.  
  18347.    short _far _settextrows( short rows );
  18348.  
  18349.  Include                           GRAPH.H
  18350.  
  18351.  rows                              Number of text rows requested
  18352.  
  18353.  Returns                           The number of rows actually set if
  18354.                                    successful; 0 if an unexpected error
  18355.                                    occurs
  18356.  
  18357.  Requests the number of text rows to be used in the current video mode.
  18358.  
  18359.   ANSI   DOS   OS/2   UNIX   XENIX
  18360.  
  18361.  
  18362.  
  18363.  _settextwindow
  18364.  ────────────────────────────────────────────────────────────────────────────
  18365.  
  18366.    void _far _settextwindow( short r1, short c1, short r2, short c2 );
  18367.  
  18368.  Include                           GRAPH.H
  18369.  
  18370.  r1, c1                            Upper left corner of window
  18371.  
  18372.  r2, c2                            Lower right corner of window
  18373.  
  18374.  Returns                           No return value; check _grstatus
  18375.  
  18376.  Specifies a window in row and column coordinates where all the text output
  18377.  to the screen is confined.
  18378.  
  18379.   ANSI   DOS   OS/2   UNIX   XENIX
  18380.  
  18381.  
  18382.  
  18383.  setvbuf
  18384.  ────────────────────────────────────────────────────────────────────────────
  18385.  
  18386.    int setvbuf( FILE *stream, char *buffer, int mode, size_t size );
  18387.  
  18388.  Include                           STDIO.H
  18389.  
  18390.  stream                            Pointer to target stream
  18391.  
  18392.  buffer                            User-supplied buffer or NULL
  18393.  
  18394.  mode                              _IOFBF, _IOLBF, _IONBF
  18395.  
  18396.  size                              Size of buffer
  18397.  
  18398.  Returns                           0 if successful; a nonzero value if not
  18399.  
  18400.  Allows the user to control both buffering and buffer size for stream.
  18401.  
  18402.   ANSI   DOS   OS/2   UNIX   XENIX
  18403.  
  18404.  
  18405.  
  18406.  _setvideomode
  18407.  ────────────────────────────────────────────────────────────────────────────
  18408.  
  18409.    short _far _setvideomode( short mode );
  18410.  
  18411.  Include                           GRAPH.H
  18412.  
  18413.  mode                              _MAXRESMODE, _MAXCOLORMODE, _DEFAULTMODE,
  18414.                                    _TEXTBW40, _TEXTC40, _TEXTBW80, _TEXTC80,
  18415.                                    _MRES4COLOR, _MRESNOCOLOR, _HRESBW,
  18416.                                    _TEXTMONO, _HERCMONO, _MRES16COLOR,
  18417.                                    _HRES16COLOR,
  18418.                                    _ERESNOCOLOR, _ERESCOLOR, _VRES2COLOR,
  18419.                                    _VRES16COLOR, _MRES256COLOR, _ORESCOLOR
  18420.  
  18421.  Returns                           The number of text rows if successful; 0
  18422.                                    if not
  18423.  
  18424.  Selects a screen mode appropriate for a particular hardware/display
  18425.  configuration. Only text modes are available in OS/2.
  18426.  
  18427.   ANSI   DOS   OS/2   UNIX   XENIX
  18428.  
  18429.  
  18430.  
  18431.  _setvideomoderows
  18432.  ────────────────────────────────────────────────────────────────────────────
  18433.  
  18434.    short _far _setvideomoderows( short mode, short rows );
  18435.  
  18436.  Include                           GRAPH.H
  18437.  
  18438.  mode                              _MAXRESMODE, _MAXCOLORMODE, _DEFAULTMODE,
  18439.                                    _TEXTBW40, _TEXTC40, _TEXTBW80, _TEXTC80,
  18440.                                    _MRES4COLOR, _MRESNOCOLOR, _HRESBW,
  18441.                                    _TEXTMONO, _HERCMONO, _MRES16COLOR,
  18442.                                    _HRES16COLOR,
  18443.                                    _ERESNOCOLOR, _ERESCOLOR, _VRES2COLOR,
  18444.                                    _VRES16COLOR, _MRES256COLOR, _ORESCOLOR
  18445.  
  18446.  rows                              Number of text rows requested
  18447.  
  18448.  Returns                           The number of rows actually set if
  18449.                                    successful; 0 if not
  18450.  
  18451.  Selects a screen mode for a particular hardware/display combination, and
  18452.  requests the number of text rows to be used. Only text modes are available
  18453.  in OS/2.
  18454.  
  18455.   ANSI   DOS   OS/2   UNIX   XENIX
  18456.  
  18457.  
  18458.  
  18459.  _setvieworg
  18460.  ────────────────────────────────────────────────────────────────────────────
  18461.  
  18462.    struct xycoord _far _setvieworg( short x, short y );
  18463.  
  18464.  Include                           GRAPH.H
  18465.  
  18466.  x, y                              New origin point
  18467.  
  18468.  Returns                           The physical coordinates of the previous
  18469.                                    view origin
  18470.  
  18471.  Moves the viewport origin (0, 0) to the physical point (x, y). (All other
  18472.  view coordinate points move the same direction and distance.)
  18473.  
  18474.   ANSI   DOS   OS/2   UNIX   XENIX
  18475.  
  18476.  
  18477.  
  18478.  _setviewport
  18479.  ────────────────────────────────────────────────────────────────────────────
  18480.  
  18481.    void _far _setviewport( short x1, short y1, short x2, short y2 );
  18482.  
  18483.  Include                           GRAPH.H
  18484.  
  18485.  x1, y1                            Upper left corner of viewport
  18486.  
  18487.  x2, y2                            Lower right corner of viewport
  18488.  
  18489.  Returns                           No return value; check _grstatus
  18490.  
  18491.  Redefines the graphics viewport (the active drawing area within the
  18492.  boundaries of the physical screen).
  18493.  
  18494.   ANSI   DOS   OS/2   UNIX   XENIX
  18495.  
  18496.  
  18497.  
  18498.  _setvisualpage
  18499.  ────────────────────────────────────────────────────────────────────────────
  18500.  
  18501.    short _far _setvisualpage( short page );
  18502.  
  18503.  Include                           GRAPH.H
  18504.  
  18505.  page                              Visual page number
  18506.  
  18507.  Returns                           The number of the previous visual page
  18508.                                    if successful; a negative value if not
  18509.  
  18510.  Specifies the area in memory where output is displayed for hardware and mode
  18511.  configurations with enough memory to support multiple-screen pages. Note
  18512.  that OS/2 supports only one page. Page 0 is always supported.
  18513.  
  18514.   ANSI   DOS   OS/2   UNIX   XENIX
  18515.  
  18516.  
  18517.  
  18518.  _setwindow
  18519.  ────────────────────────────────────────────────────────────────────────────
  18520.  
  18521.    short _far _setwindow( short finvert, double wx1, double wy1,
  18522.    double wx2, double wy2 );
  18523.  
  18524.  Include                           GRAPH.H
  18525.  
  18526.  finvert                           Invert flag
  18527.  
  18528.  wx1, wy1                          Upper left corner of window
  18529.  
  18530.  wx2, wy2                          Lower right corner of window
  18531.  
  18532.  Returns                           A nonzero value if successful; 0 if not
  18533.  
  18534.  Defines a virtual window bounded by the specified coordinates within the
  18535.  current viewport. All w and wxy drawing functions produce output relative to
  18536.  this window.
  18537.  
  18538.   ANSI   DOS   OS/2   UNIX   XENIX
  18539.  
  18540.  
  18541.  
  18542.  _setwritemode
  18543.  ────────────────────────────────────────────────────────────────────────────
  18544.  
  18545.    short _far _setwritemode( short action );
  18546.  
  18547.  Include                           GRAPH.H
  18548.  
  18549.  action                            _GPSET, _GPRESET, _GAND, _GOR, _GXOR
  18550.  
  18551.  Returns                           The previous write mode; -1 if an error
  18552.                                    occurs
  18553.  
  18554.  Sets the current logical write mode used when drawing lines with the
  18555.  _lineto, _rectangle, and _polygon functions.
  18556.  
  18557.   ANSI   DOS   OS/2   UNIX   XENIX
  18558.  
  18559.  
  18560.  
  18561.  signal
  18562.  ────────────────────────────────────────────────────────────────────────────
  18563.  
  18564.    void( *signal( int sig, void( *func)( int sig [[, int subcode]] ) ) )( int
  18565.    sig );
  18566.  
  18567.  Include                           SIGNAL.H, ERRNO.H
  18568.  
  18569.  sig                               SIGABRT, SIGBREAK, SIGFPE, SIGILL,
  18570.                                    SIGINT, SIGSEGV, SIGTERM, SIGUSR1,
  18571.                                    SIGUSR2, SIGUSR3
  18572.  
  18573.  func                              Function address or one of SIG_IGN,
  18574.                                    SIG_DFL, SIG_SGE, SIG_ACK
  18575.  
  18576.  subcode                           Optional subcode to the signal number
  18577.  
  18578.  Returns                           The previous value of func associated
  18579.                                    with the given signal if successful; -1
  18580.                                    if not
  18581.  
  18582.  errno                             EINVAL
  18583.  
  18584.  Allows a process to choose one of several ways to handle an interrupt signal
  18585.  from the operating system.
  18586.  
  18587.   ANSI   DOS   OS/2   UNIX   XENIX
  18588.  
  18589.  
  18590.  
  18591.  sin
  18592.  ────────────────────────────────────────────────────────────────────────────
  18593.  
  18594.    double sin( double x );
  18595.  
  18596.  Include                           MATH.H, ERRNO.H
  18597.  
  18598.  x                                 Angle in radians
  18599.  
  18600.  Returns                           The sine of x
  18601.  
  18602.  errno                             ERANGE
  18603.  
  18604.  Calculates the sine of x.
  18605.  
  18606.   ANSI   DOS   OS/2   UNIX   XENIX
  18607.  
  18608.  
  18609.  
  18610.  sinh
  18611.  ────────────────────────────────────────────────────────────────────────────
  18612.  
  18613.    double sinh( double x );
  18614.  
  18615.  Include                           MATH.H, ERRNO.H
  18616.  
  18617.  x                                 Angle in radians
  18618.  
  18619.  Returns                           The hyperbolic sine of x;   HUGE_VAL if
  18620.                                    not
  18621.  
  18622.  errno                             ERANGE
  18623.  
  18624.  Calculates the hyperbolic sine of x.
  18625.  
  18626.   ANSI   DOS   OS/2   UNIX   XENIX
  18627.  
  18628.  
  18629.  
  18630.  sinhl
  18631.  ────────────────────────────────────────────────────────────────────────────
  18632.  
  18633.    long double sinhl( long double x );
  18634.  
  18635.  Include                           MATH.H, ERRNO.H
  18636.  
  18637.  x                                 Angle in radians
  18638.  
  18639.  Returns                           The hyperbolic sine of x if successful;
  18640.                                     _LHUGE_VAL if not
  18641.  
  18642.  errno                             ERANGE
  18643.  
  18644.  Calculates the hyperbolic sine of x. Long double-precision floating-point
  18645.  version of sinh.
  18646.  
  18647.   ANSI   DOS   OS/2   UNIX   XENIX
  18648.  
  18649.  
  18650.  
  18651.  sinl
  18652.  ────────────────────────────────────────────────────────────────────────────
  18653.  
  18654.    long double sinl( long double x );
  18655.  
  18656.  Include                           MATH.H, ERRNO.H
  18657.  
  18658.  x                                 Angle in radians
  18659.  
  18660.  Returns                           The sine of x
  18661.  
  18662.  errno                             ERANGE
  18663.  
  18664.  Calculates the sine of x. Long double-precision floating-point version of
  18665.  sin.
  18666.  
  18667.   ANSI   DOS   OS/2   UNIX   XENIX
  18668.  
  18669.  
  18670.  
  18671.  sopen
  18672.  ────────────────────────────────────────────────────────────────────────────
  18673.  
  18674.    int sopen( char *filename, int oflag, int shflag [[, int pmode]] );
  18675.  
  18676.  Include                           SYS\TYPES.H, SYS\STAT.H, FCNTL.H,
  18677.                                    SHARE.H, IO.H
  18678.  
  18679.  filename                          File path name
  18680.  
  18681.  oflag                             O_APPEND, O_BINARY, O_CREAT, O_EXCL,
  18682.                                    O_RDONLY, O_RDWR, O_TEXT, O_TRUNC,
  18683.                                    O_WRONLY
  18684.  
  18685.  shflag                            SH_COMPAT, SH_DENYRW, SH_DENYWR,
  18686.                                    SH_DENYRD, SH_DENYNO
  18687.  
  18688.  pmode                             S_IWRITE, S_IREAD, S_IREAD | S_IWRITE
  18689.  
  18690.  Returns                           A file handle for the opened file if
  18691.                                    successful; -1 if not
  18692.  
  18693.  errno                             EACCES, EEXIST, EINVAL, EMFILE, ENOENT
  18694.  
  18695.  Opens the file specified by filename and prepares the file for subsequent
  18696.  shared reading or writing, as defined by oflag, shflag, and, optionally,
  18697.  pmode.
  18698.  
  18699.   ANSI   DOS   OS/2   UNIX   XENIX
  18700.  
  18701.  
  18702.  
  18703.  spawnl
  18704.  ────────────────────────────────────────────────────────────────────────────
  18705.  
  18706.    int spawnl( int mode, char *cmdname, char *arg0, char *arg1, ... char
  18707.    *argn, NULL );
  18708.  
  18709.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18710.  
  18711.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18712.                                    P_DETACH
  18713.  
  18714.  cmdname                           Path name of file to be executed
  18715.  
  18716.  arg0, ... argn                    List of pointers to arguments,
  18717.                                    terminated by NULL
  18718.  
  18719.  Returns                           The exit status of the child process
  18720.                                    (synchronous spawn) or the process ID of
  18721.                                    the child process (asynchronous spawn)
  18722.  
  18723.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18724.  
  18725.  Creates and executes a new child process, and passes a copy of the current
  18726.  process's environment to the child. Command-line arguments are passed
  18727.  individually to the function.
  18728.  
  18729.   ANSI   DOS   OS/2   UNIX   XENIX
  18730.  
  18731.  
  18732.  
  18733.  spawnle
  18734.  ────────────────────────────────────────────────────────────────────────────
  18735.  
  18736.    int spawnle( int mode, char *cmdname, char *arg0, char *arg1, ... char
  18737.    *argn, NULL, char **envp );
  18738.  
  18739.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18740.  
  18741.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18742.                                    P_DETACH
  18743.  
  18744.  cmdname                           Path name of file to be executed
  18745.  
  18746.  arg0, ... argn                    List of pointers to arguments,
  18747.                                    terminated by NULL
  18748.  
  18749.  envp                              Array of pointers to environment
  18750.                                    settings
  18751.  
  18752.  Returns                           The exit status of the child process
  18753.                                    (synchronous spawn) or the process ID of
  18754.                                    the child process (asynchronous spawn)
  18755.  
  18756.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18757.  
  18758.  Creates and executes a new child process. Command-line arguments are passed
  18759.  individually to the function. The child process is passed an array of
  18760.  pointers to environment strings instead of a copy of the current process's
  18761.  environment strings.
  18762.  
  18763.   ANSI   DOS   OS/2   UNIX   XENIX
  18764.  
  18765.  
  18766.  
  18767.  spawnlp
  18768.  ────────────────────────────────────────────────────────────────────────────
  18769.  
  18770.    int spawnlp( int mode, char *cmdname, char *arg0, char *arg1, ... char
  18771.    *argn,
  18772.    NULL );
  18773.  
  18774.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18775.  
  18776.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18777.                                    P_DETACH
  18778.  
  18779.  cmdname                           Path name of file to be executed
  18780.  
  18781.  arg0, ... argn                    List of pointers to arguments,
  18782.                                    terminated by NULL
  18783.  
  18784.  Returns                           The exit status of the child process
  18785.                                    (synchronous spawn) or the process ID of
  18786.                                    the child process (asynchronous spawn)
  18787.  
  18788.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18789.  
  18790.  Creates and executes a new child process, and passes to the child a copy of
  18791.  the environment of the current process. Command-line arguments are passed
  18792.  individually to the function. The PATH environment variable is used to find
  18793.  the file to be executed if a relative path name is given.
  18794.  
  18795.   ANSI   DOS   OS/2   UNIX   XENIX
  18796.  
  18797.  
  18798.  
  18799.  spawnlpe
  18800.  ────────────────────────────────────────────────────────────────────────────
  18801.  
  18802.    int spawnlpe( int mode, char *cmdname, char *arg0, char *arg1, ... char
  18803.    *argn, NULL, char **envp );
  18804.  
  18805.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18806.  
  18807.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18808.                                    P_DETACH
  18809.  
  18810.  cmdname                           Path name of file to be executed
  18811.  
  18812.  arg0, ... argn                    List of pointers to arguments,
  18813.                                    terminated by NULL
  18814.  
  18815.  envp                              Array of pointers to environment
  18816.                                    settings
  18817.  
  18818.  Returns                           The exit status of the child process
  18819.                                    (synchronous spawn) or the process ID of
  18820.                                    the child process (asynchronous spawn)
  18821.  
  18822.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18823.  
  18824.  Creates and executes a new child process. Command-line arguments are passed
  18825.  individually to the function. The PATH environment variable is used to find
  18826.  the file to be executed if it is specified by a relative path name. The
  18827.  child process is passed an array of pointers to environment strings, instead
  18828.  of a copy of the environment strings of the current process.
  18829.  
  18830.   ANSI   DOS   OS/2   UNIX   XENIX
  18831.  
  18832.  
  18833.  
  18834.  spawnv
  18835.  ────────────────────────────────────────────────────────────────────────────
  18836.  
  18837.    int spawnv( int mode, char *cmdname, char **argv );
  18838.  
  18839.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18840.  
  18841.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18842.                                    P_DETACH
  18843.  
  18844.  cmdname                           Path name of file to be executed
  18845.  
  18846.  argv                              Array of pointers to arguments
  18847.  
  18848.  Returns                           The exit status of the child process
  18849.                                    (synchronous spawn) or the process ID of
  18850.                                    the child process (asynchronous spawn)
  18851.  
  18852.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18853.  
  18854.  Creates and executes a new child process, and passes a copy of the current
  18855.  process's environment to the child. Command-line arguments are passed to the
  18856.  function as an array of pointers.
  18857.  
  18858.   ANSI   DOS   OS/2   UNIX   XENIX
  18859.  
  18860.  
  18861.  
  18862.  spawnve
  18863.  ────────────────────────────────────────────────────────────────────────────
  18864.  
  18865.    int spawnve( int mode, char *cmdname, char **argv , char **envp );
  18866.  
  18867.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18868.  
  18869.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18870.                                    P_DETACH
  18871.  
  18872.  cmdname                           Path name of file to be executed
  18873.  
  18874.  argv                              Array of pointers to arguments
  18875.  
  18876.  envp                              Array of pointers to environment
  18877.                                    settings
  18878.  
  18879.  Returns                           The exit status of the child process
  18880.                                    (synchronous spawn) or the process ID of
  18881.                                    the child process (asynchronous spawn)
  18882.  
  18883.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18884.  
  18885.  Creates and executes a new child process. Command-line arguments are passed
  18886.  to the function as an array of pointers. The child process is passed an
  18887.  array of pointers to environment strings, instead of a copy of the
  18888.  environment strings of the current process.
  18889.  
  18890.   ANSI   DOS   OS/2   UNIX   XENIX
  18891.  
  18892.  
  18893.  
  18894.  spawnvp
  18895.  ────────────────────────────────────────────────────────────────────────────
  18896.  
  18897.    int spawnvp( int mode, char *cmdname, char **argv);
  18898.  
  18899.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18900.  
  18901.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18902.                                    P_DETACH
  18903.  
  18904.  cmdname                           Path name of file to be executed
  18905.  
  18906.  argv                              Array of pointers to arguments
  18907.  
  18908.  Returns                           The exit status of the child process
  18909.                                    (synchronous spawn) or the process ID of
  18910.                                    the child process (asynchronous spawn)
  18911.  
  18912.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18913.  
  18914.  Creates and executes a new child process, and passes a copy of the current
  18915.  process's environment to the child. Command-line arguments are passed to the
  18916.  function as an array of pointers. The PATH environment variable is used to
  18917.  find the file to be executed if necessary and if the file is specified by a
  18918.  relative path name.
  18919.  
  18920.   ANSI   DOS   OS/2   UNIX   XENIX
  18921.  
  18922.  
  18923.  
  18924.  spawnvpe
  18925.  ────────────────────────────────────────────────────────────────────────────
  18926.  
  18927.    int spawnvpe( int mode, char *cmdname, char **argv, char **envp );
  18928.  
  18929.  Include                           STDIO.H, PROCESS.H, ERRNO.H
  18930.  
  18931.  mode                              P_WAIT, P_NOWAIT, P_NOWAITO, P_OVERLAY,
  18932.                                    P_DETACH
  18933.  
  18934.  cmdname                           Path name of file to be executed
  18935.  
  18936.  argv                              Array of pointers to arguments
  18937.  
  18938.  envp                              Array of pointers to environment
  18939.                                    settings
  18940.  
  18941.  Returns                           The exit status of the child process
  18942.                                    (synchronous spawn) or the process ID of
  18943.                                    the child process (asynchronous spawn)
  18944.  
  18945.  errno                             E2BIG, EINVAL, ENOENT, ENOEXEC, ENOMEM
  18946.  
  18947.  Creates and executes a new child process. Command-line arguments are passed
  18948.  to the function as an array of pointers. The PATH environment variable is
  18949.  used to find the file to be executed. It explicitly passes to the child
  18950.  process the strings, instead of a copy of the current process's environment
  18951.  strings array of pointers to environment.
  18952.  
  18953.   ANSI   DOS   OS/2   UNIX   XENIX
  18954.  
  18955.  
  18956.  
  18957.  _splitpath
  18958.  ────────────────────────────────────────────────────────────────────────────
  18959.  
  18960.    void _splitpath( char *path, char *drive, char *dir, char *fname, char
  18961.    *ext );
  18962.  
  18963.  Include                           STDLIB.H
  18964.  
  18965.  path                              Full path-name buffer
  18966.  
  18967.  drive                             Drive letter
  18968.  
  18969.  dir                               Directory path
  18970.  
  18971.  fname                             File name
  18972.  
  18973.  ext                               File extension
  18974.  
  18975.  Returns                           No return value
  18976.  
  18977.  Breaks the full path-name buffer path into its four components.
  18978.  
  18979.   ANSI   DOS   OS/2   UNIX   XENIX
  18980.  
  18981.  
  18982.  
  18983.  sprintf
  18984.  ────────────────────────────────────────────────────────────────────────────
  18985.  
  18986.    int sprintf( char *buffer, const char *format [[, argument]]... );
  18987.  
  18988.  Include                           STDIO.H
  18989.  
  18990.  buffer                            Storage location for output
  18991.  
  18992.  format                            Format-control string
  18993.  
  18994.  argument                          Optional arguments; pointers to
  18995.                                    variables of the types specified in the
  18996.                                    format-control string
  18997.  
  18998.  Returns                           The number of characters stored in
  18999.                                    buffer, not counting the terminating
  19000.                                    null character ('\0')
  19001.  
  19002.  Formats and stores a series of characters and values in buffer.
  19003.  
  19004.   ANSI   DOS   OS/2   UNIX   XENIX
  19005.  
  19006.  
  19007.  
  19008.  sqrt
  19009.  ────────────────────────────────────────────────────────────────────────────
  19010.  
  19011.    double sqrt( double x );
  19012.  
  19013.  Include                           MATH.H, ERRNO.H
  19014.  
  19015.  x                                 Nonnegative floating-point value
  19016.  
  19017.  Returns                           The square root of x if successful; 0 if
  19018.                                    not
  19019.  
  19020.  errno                             EDOM
  19021.  
  19022.  Calculates the square root.
  19023.  
  19024.   ANSI   DOS   OS/2   UNIX   XENIX
  19025.  
  19026.  
  19027.  
  19028.  sqrtl
  19029.  ────────────────────────────────────────────────────────────────────────────
  19030.  
  19031.    long double sqrtl( long double x );
  19032.  
  19033.  Include                           MATH.H, ERRNO.H
  19034.  
  19035.  x                                 Nonnegative long double-precision
  19036.                                    floating-point value
  19037.  
  19038.  Returns                           The square root of x if successful; 0 if
  19039.                                    not
  19040.  
  19041.  errno                             EDOM
  19042.  
  19043.  Calculates the square root. Long double-precision floating-point version of
  19044.  sqrt.
  19045.  
  19046.   ANSI   DOS   OS/2   UNIX   XENIX
  19047.  
  19048.  
  19049.  
  19050.  srand
  19051.  ────────────────────────────────────────────────────────────────────────────
  19052.  
  19053.    void srand( unsigned int seed );
  19054.  
  19055.  Include                           STDLIB.H
  19056.  
  19057.  seed                              Seed for random-number generation
  19058.  
  19059.  Returns                           No return value
  19060.  
  19061.  Sets the starting point for generating a series of pseudorandom integers.
  19062.  
  19063.   ANSI   DOS   OS/2   UNIX   XENIX
  19064.  
  19065.  
  19066.  
  19067.  sscanf
  19068.  ────────────────────────────────────────────────────────────────────────────
  19069.  
  19070.    int sscanf( const char *buffer, const char *format [[, argument]]... );
  19071.  
  19072.  Include                           STDIO.H
  19073.  
  19074.  buffer                            Stored data
  19075.  
  19076.  format                            Format-control string
  19077.  
  19078.  argument                          Optional arguments; pointers to
  19079.                                    variables of types specified in the
  19080.                                    format-control string
  19081.  
  19082.  Returns                           The number of fields that were
  19083.                                    successfully converted and assigned
  19084.  
  19085.  Reads data from buffer into the locations given by each argument. Every
  19086.  argument must be a pointer to a variable with a type that corresponds to a
  19087.  type specifier in format.
  19088.  
  19089.   ANSI   DOS   OS/2   UNIX   XENIX
  19090.  
  19091.  
  19092.  
  19093.  stackavail
  19094.  ────────────────────────────────────────────────────────────────────────────
  19095.  
  19096.    size_t stackavail( void );
  19097.  
  19098.  Include                           MALLOC.H
  19099.  
  19100.  Returns                           The size in bytes as an unsigned integer
  19101.  
  19102.  Gets the approximate size in bytes of the stack space available for dynamic
  19103.  memory allocation with alloca.
  19104.  
  19105.   ANSI   DOS   OS/2   UNIX   XENIX
  19106.  
  19107.  
  19108.  
  19109.  stat
  19110.  ────────────────────────────────────────────────────────────────────────────
  19111.  
  19112.    int stat( char *pathname, struct stat *buffer );
  19113.  
  19114.  Include                           SYS\STAT.H, SYS\TYPES.H, ERRNO.H
  19115.  
  19116.  pathname                          Path name of existing file
  19117.  
  19118.  buffer                            Pointer to structure to receive results
  19119.  
  19120.  Returns                           0 if successful; a nonzero value if not
  19121.  
  19122.  errno                             ENOENT
  19123.  
  19124.  Gets information about the file or directory specified by pathname and
  19125.  stores it in the structure that buffer points to.
  19126.  
  19127.   ANSI   DOS   OS/2   UNIX   XENIX
  19128.  
  19129.  
  19130.  
  19131.  _status87
  19132.  ────────────────────────────────────────────────────────────────────────────
  19133.  
  19134.    unsigned int _status87( void );
  19135.  
  19136.  Include                           FLOAT.H
  19137.  
  19138.  Returns                           A floating-point status word whose bits
  19139.                                    are defined in FLOAT.H
  19140.  
  19141.  Gets the current 8087 floating-point status word.
  19142.  
  19143.   ANSI   DOS   OS/2   UNIX   XENIX
  19144.  
  19145.  
  19146.  
  19147.  strcat
  19148.  ────────────────────────────────────────────────────────────────────────────
  19149.  
  19150.    char *strcat( char *string1, const char *string2 );
  19151.  
  19152.  Include                           STRING.H
  19153.  
  19154.  string1                           Destination string
  19155.  
  19156.  string2                           Source string
  19157.  
  19158.  Returns                           A pointer to the beginning of the
  19159.                                    concatenated string
  19160.  
  19161.  Appends string2 to string1.
  19162.  
  19163.   ANSI   DOS   OS/2   UNIX   XENIX
  19164.  
  19165.  
  19166.  
  19167.  strchr
  19168.  ────────────────────────────────────────────────────────────────────────────
  19169.  
  19170.    char *strchr( const char *string, int c );
  19171.  
  19172.  Include                           STRING.H
  19173.  
  19174.  string                            Source string
  19175.  
  19176.  c                                 Character to be located
  19177.  
  19178.  Returns                           A pointer to the first occurrence of c
  19179.                                    in string
  19180.  
  19181.  Searches for the first occurrence of c in string.
  19182.  
  19183.   ANSI   DOS   OS/2   UNIX   XENIX
  19184.  
  19185.  
  19186.  
  19187.  strcmp
  19188.  ────────────────────────────────────────────────────────────────────────────
  19189.  
  19190.    int strcmp( const char *string1, const char *string2 );
  19191.  
  19192.  Include                           STRING.H
  19193.  
  19194.  string1, string2                  Strings to compare
  19195.  
  19196.  Returns                           A value less than, equal to, or greater
  19197.                                    than 0, depending on whether the string
  19198.                                    pointed to by string1 is less than,
  19199.                                    equal to, or greater than the string
  19200.                                    pointed to by string2
  19201.  
  19202.  Compares two strings.
  19203.  
  19204.   ANSI   DOS   OS/2   UNIX   XENIX
  19205.  
  19206.  
  19207.  
  19208.  strcoll
  19209.  ────────────────────────────────────────────────────────────────────────────
  19210.  
  19211.    int strcoll( const char *string1, const char *string2 );
  19212.  
  19213.  Include                           STRING.H
  19214.  
  19215.  string1, string2                  Strings to compare
  19216.  
  19217.  Returns                           A value less than, equal to, or greater
  19218.                                    than 0, depending on whether the string
  19219.                                    pointed to by string1 is less than,
  19220.                                    equal to, or greater than the string
  19221.                                    pointed to by string2
  19222.  
  19223.  Compares two strings for locale-specific collating sequences.
  19224.  
  19225.   ANSI   DOS   OS/2   UNIX   XENIX
  19226.  
  19227.  
  19228.  
  19229.  strcpy
  19230.  ────────────────────────────────────────────────────────────────────────────
  19231.  
  19232.    char *strcpy( char *string1, const char *string2 );
  19233.  
  19234.  Include                           STRING.H
  19235.  
  19236.  string1                           Destination string
  19237.  
  19238.  string2                           Source string
  19239.  
  19240.  Returns                           string1
  19241.  
  19242.  Copies string2 to string1.
  19243.  
  19244.   ANSI   DOS   OS/2   UNIX   XENIX
  19245.  
  19246.  
  19247.  
  19248.  strcspn
  19249.  ────────────────────────────────────────────────────────────────────────────
  19250.  
  19251.    size_t strcspn( const char *string1, const char *string2 );
  19252.  
  19253.  Include                           STRING.H
  19254.  
  19255.  string1                           Source string
  19256.  
  19257.  string2                           Character set
  19258.  
  19259.  Returns                           The length of the maximum initial
  19260.                                    segment of string1 that consists of
  19261.                                    characters not in string2
  19262.  
  19263.  Finds first substring in string1 of characters not in string2.
  19264.  
  19265.   ANSI   DOS   OS/2   UNIX   XENIX
  19266.  
  19267.  
  19268.  
  19269.  _strdate
  19270.  ────────────────────────────────────────────────────────────────────────────
  19271.  
  19272.    char *_strdate( char *datestr );
  19273.  
  19274.  Include                           TIME.H
  19275.  
  19276.  datestr                           Current date
  19277.  
  19278.  Returns                           A pointer to the date
  19279.  
  19280.  Copies the current date to the buffer that datestr points to, formatted as
  19281.  mm/dd/yy.
  19282.  
  19283.   ANSI   DOS   OS/2   UNIX   XENIX
  19284.  
  19285.  
  19286.  
  19287.  strdup
  19288.  ────────────────────────────────────────────────────────────────────────────
  19289.  
  19290.    char *strdup( const char *string );
  19291.  
  19292.  Include                           STRING.H
  19293.  
  19294.  string                            Source string
  19295.  
  19296.  Returns                           A pointer to the storage space
  19297.                                    containing the duplicate string
  19298.  
  19299.  Duplicates string, copying it to memory allocated by malloc.
  19300.  
  19301.   ANSI   DOS   OS/2   UNIX   XENIX
  19302.  
  19303.  
  19304.  
  19305.  strerror
  19306.  ────────────────────────────────────────────────────────────────────────────
  19307.  
  19308.    char *strerror( int errnum );
  19309.  
  19310.  Include                           STRING.H
  19311.  
  19312.  errnum                            Error number
  19313.  
  19314.  Returns                           A pointer to the error-message string
  19315.  
  19316.  Maps errnum to an error-message string, returning a pointer to the string.
  19317.  
  19318.   ANSI   DOS   OS/2   UNIX   XENIX
  19319.  
  19320.  
  19321.  
  19322.  _strerror
  19323.  ────────────────────────────────────────────────────────────────────────────
  19324.  
  19325.    char *_strerror( char *string );
  19326.  
  19327.  Include                           STRING.H
  19328.  
  19329.  string                            User-supplied message
  19330.  
  19331.  Returns                           No return value
  19332.  
  19333.  Returns a pointer to a string containing, in order, the string message, a
  19334.  colon, a space, the system error message for the last library call producing
  19335.  an error, and a newline character. The supplied string message can be a
  19336.  maximum of 94 bytes long.
  19337.  
  19338.   ANSI   DOS   OS/2   UNIX   XENIX
  19339.  
  19340.  
  19341.  
  19342.  strftime
  19343.  ────────────────────────────────────────────────────────────────────────────
  19344.  
  19345.    size_t strftime( char *string, size_t maxsize, const char *format,
  19346.    const struct tm *timeptr );
  19347.  
  19348.  Include                           TIME.H
  19349.  
  19350.  string                            Output string
  19351.  
  19352.  maxsize                           Maximum length of string
  19353.  
  19354.  format                            Format-control string
  19355.  
  19356.  timeptr                           tm data structure
  19357.  
  19358.  Returns                           The number of characters placed in
  19359.                                    string if the total number, including
  19360.                                    the terminating null character ('\0'),
  19361.                                    is less than maxsize; 0 otherwise
  19362.  
  19363.  Copies text into a string related to date and time values from a tm
  19364.  structure and specified by format.
  19365.  
  19366.   ANSI   DOS   OS/2   UNIX   XENIX
  19367.  
  19368.  
  19369.  
  19370.  stricmp
  19371.  ────────────────────────────────────────────────────────────────────────────
  19372.  
  19373.    int stricmp( const char *string1, const char *string2 );
  19374.  
  19375.  Include                           STRING.H
  19376.  
  19377.  string1, string2                  Strings to compare
  19378.  
  19379.  Returns                           A value less than, equal to, or greater
  19380.                                    than 0, depending on whether the string
  19381.                                    pointed to by string1 is less than,
  19382.                                    equal to, or greater than the string
  19383.                                    pointed to by string2
  19384.  
  19385.  Compares two strings without regard to case.
  19386.  
  19387.   ANSI   DOS   OS/2   UNIX   XENIX
  19388.  
  19389.  
  19390.  
  19391.  strlen
  19392.  ────────────────────────────────────────────────────────────────────────────
  19393.  
  19394.    size_t strlen( const char *string );
  19395.  
  19396.  Include                           STRING.H
  19397.  
  19398.  string                            Null-terminated string
  19399.  
  19400.  Returns                           The length in bytes of string, not
  19401.                                    including the terminating null character
  19402.                                    ('\0')
  19403.  
  19404.  Gets the length of a string.
  19405.  
  19406.   ANSI   DOS   OS/2   UNIX   XENIX
  19407.  
  19408.  
  19409.  
  19410.  strlwr
  19411.  ────────────────────────────────────────────────────────────────────────────
  19412.  
  19413.    char *strlwr( char *string );
  19414.  
  19415.  Include                           STRING.H
  19416.  
  19417.  string                            String to be converted
  19418.  
  19419.  Returns                           A pointer to the converted string
  19420.  
  19421.  Converts any uppercase letters in the given null-terminated string to
  19422.  lowercase. Other characters are not affected.
  19423.  
  19424.   ANSI   DOS   OS/2   UNIX   XENIX
  19425.  
  19426.  
  19427.  
  19428.  strncat
  19429.  ────────────────────────────────────────────────────────────────────────────
  19430.  
  19431.    char *strncat( char *string1, const char *string2, size_t count );
  19432.  
  19433.  Include                           STRING.H
  19434.  
  19435.  string1                           Destination string
  19436.  
  19437.  string2                           Source string
  19438.  
  19439.  count                             Maximum number of characters to append
  19440.  
  19441.  Returns                           A pointer to the concatenated string
  19442.  
  19443.  Appends, at most, the first count characters of string2 to string1 and
  19444.  terminates the resulting string with a null character ('\0').
  19445.  
  19446.   ANSI   DOS   OS/2   UNIX   XENIX
  19447.  
  19448.  
  19449.  
  19450.  strncmp
  19451.  ────────────────────────────────────────────────────────────────────────────
  19452.  
  19453.    int strncmp( const char *string1, const char *string2, size_t count );
  19454.  
  19455.  Include                           STRING.H
  19456.  
  19457.  string1, string2                  Strings to compare
  19458.  
  19459.  count                             Maximum number of characters to compare
  19460.  
  19461.  Returns                           A value less than, equal to, or greater
  19462.                                    than 0, depending on whether the string
  19463.                                    pointed to by string1 is less than,
  19464.                                    equal to, or greater than the string
  19465.                                    pointed to by string2
  19466.  
  19467.  Compares, at most, the first count characters of string1 and string2.
  19468.  
  19469.   ANSI   DOS   OS/2   UNIX   XENIX
  19470.  
  19471.  
  19472.  
  19473.  strncpy
  19474.  ────────────────────────────────────────────────────────────────────────────
  19475.  
  19476.    char *strncpy( char *string1, const char *string2, size_t count );
  19477.  
  19478.  Include                           STRING.H
  19479.  
  19480.  string1                           Destination string
  19481.  
  19482.  string2                           Source string
  19483.  
  19484.  count                             Number of characters copied
  19485.  
  19486.  Returns                           string1
  19487.  
  19488.  Copies, at most, count characters of string2 to string1. If string2 is
  19489.  shorter than count, null ('\0') characters are appended to string1. Warning:
  19490.  If the sum of the lengths of string1 and string2 is longer than count, no
  19491.  null character will be appended.
  19492.  
  19493.   ANSI   DOS   OS/2   UNIX   XENIX
  19494.  
  19495.  
  19496.  
  19497.  strnicmp
  19498.  ────────────────────────────────────────────────────────────────────────────
  19499.  
  19500.    int strnicmp( const char *string1, const char *string2, size_t count );
  19501.  
  19502.  Include                           STRING.H
  19503.  
  19504.  string1, string2                  Strings to compare
  19505.  
  19506.  count                             Maximum number of characters compared
  19507.  
  19508.  Returns                           A value less than, equal to, or greater
  19509.                                    than 0, depending on whether the string
  19510.                                    pointed to by string1 is less than,
  19511.                                    equal to, or greater than the string
  19512.                                    pointed to by string2
  19513.  
  19514.  Compares, at most, the first count characters of string1 and string2,
  19515.  without regard to letter case.
  19516.  
  19517.   ANSI   DOS   OS/2   UNIX   XENIX
  19518.  
  19519.  
  19520.  
  19521.  strnset
  19522.  ────────────────────────────────────────────────────────────────────────────
  19523.  
  19524.    char *strnset( char *string, int c, size_t count );
  19525.  
  19526.  Include                           STRING.H
  19527.  
  19528.  string                            String to be initialized
  19529.  
  19530.  c                                 Character setting
  19531.  
  19532.  count                             Maximum number of characters set
  19533.  
  19534.  Returns                           A pointer to the altered string
  19535.  
  19536.  Sets, at most, the first count characters of string to the character c. If
  19537.  count is longer than string, the length of string replaces count.
  19538.  
  19539.   ANSI   DOS   OS/2   UNIX   XENIX
  19540.  
  19541.  
  19542.  
  19543.  strpbrk
  19544.  ────────────────────────────────────────────────────────────────────────────
  19545.  
  19546.    char *strpbrk( const char *string1, const char *string2 );
  19547.  
  19548.  Include                           STRING.H
  19549.  
  19550.  string1                           Source string
  19551.  
  19552.  string2                           Character set
  19553.  
  19554.  Returns                           A pointer to the first occurrence of any
  19555.                                    character from string2 in string1
  19556.  
  19557.  Finds the first occurrence in string1 of any character from string2, not
  19558.  including the terminating null character ('\0').
  19559.  
  19560.   ANSI   DOS   OS/2   UNIX   XENIX
  19561.  
  19562.  
  19563.  
  19564.  strrchr
  19565.  ────────────────────────────────────────────────────────────────────────────
  19566.  
  19567.    char *strrchr( const char *string, int c );
  19568.  
  19569.  Include                           STRING.H
  19570.  
  19571.  string                            String to be searched
  19572.  
  19573.  c                                 Character to be located
  19574.  
  19575.  Returns                           A pointer to the last occurrence of c in
  19576.                                    string; a null pointer if c is not found
  19577.  
  19578.  Finds the last occurrence of the character c in string.
  19579.  
  19580.   ANSI   DOS   OS/2   UNIX   XENIX
  19581.  
  19582.  
  19583.  
  19584.  strrev
  19585.  ────────────────────────────────────────────────────────────────────────────
  19586.  
  19587.    char *strrev( char *string );
  19588.  
  19589.  Include                           STRING.H
  19590.  
  19591.  string                            String to be reversed
  19592.  
  19593.  Returns                           A pointer to the altered string
  19594.  
  19595.  Reverses the order of the characters in string. The terminating null
  19596.  character ('\0') remains in place.
  19597.  
  19598.   ANSI   DOS   OS/2   UNIX   XENIX
  19599.  
  19600.  
  19601.  
  19602.  strset
  19603.  ────────────────────────────────────────────────────────────────────────────
  19604.  
  19605.    char *strset( char *string, int c );
  19606.  
  19607.  Include                           STRING.H
  19608.  
  19609.  string                            String to be set
  19610.  
  19611.  c                                 Character setting
  19612.  
  19613.  Returns                           A pointer to the altered string
  19614.  
  19615.  Sets all of the characters of string to c, except the terminating null
  19616.  character ('\0').
  19617.  
  19618.   ANSI   DOS   OS/2   UNIX   XENIX
  19619.  
  19620.  
  19621.  
  19622.  strspn
  19623.  ────────────────────────────────────────────────────────────────────────────
  19624.  
  19625.    size_t strspn( const char *string1, const char *string2 );
  19626.  
  19627.  Include                           STRING.H
  19628.  
  19629.  string1                           Searched string
  19630.  
  19631.  string2                           Character set
  19632.  
  19633.  Returns                           The length of the initial substring of
  19634.                                    string1 that consists entirely of
  19635.                                    characters from string2
  19636.  
  19637.  Finds the first substring and returns the index of the first character in
  19638.  string1 that does not belong to the set of characters specified by string2.
  19639.  
  19640.  
  19641.   ANSI   DOS   OS/2   UNIX   XENIX
  19642.  
  19643.  
  19644.  
  19645.  strstr
  19646.  ────────────────────────────────────────────────────────────────────────────
  19647.  
  19648.    char *strstr( const char *string1, const char *string2 );
  19649.  
  19650.  Include                           STRING.H
  19651.  
  19652.  string1                           Searched string
  19653.  
  19654.  string2                           String to search for
  19655.  
  19656.  Returns                           A pointer to the first occurrence of
  19657.                                    string2 in string1; NULL if string2 is
  19658.                                    not found
  19659.  
  19660.  Finds a substring.
  19661.  
  19662.   ANSI   DOS   OS/2   UNIX   XENIX
  19663.  
  19664.  
  19665.  
  19666.  _strtime
  19667.  ────────────────────────────────────────────────────────────────────────────
  19668.  
  19669.    char *_strtime( char *timestr );
  19670.  
  19671.  Include                           TIME.H
  19672.  
  19673.  timestr                           Time string
  19674.  
  19675.  Returns                           A formatted string
  19676.  
  19677.  Copies the current time into the buffer that timestr points to, formatted as
  19678.  hh:mm:ss.
  19679.  
  19680.  
  19681.  strtod
  19682.  ────────────────────────────────────────────────────────────────────────────
  19683.  
  19684.    double strtod( const char *nptr, char **endptr );
  19685.  
  19686.  Include                           STDLIB.H, ERRNO.H
  19687.  
  19688.  nptr                              String to convert
  19689.  
  19690.  endptr                            Pointer to the character causing the end
  19691.                                    of scan
  19692.  
  19693.  Returns                           The value of the floating-point number
  19694.                                    if successful;   HUGE_VAL on overflow; 0
  19695.                                    otherwise
  19696.  
  19697.  errno                             ERANGE
  19698.  
  19699.  Converts a character string to a double-precision value.
  19700.  
  19701.   ANSI   DOS   OS/2   UNIX   XENIX
  19702.  
  19703.  
  19704.  
  19705.  strtok
  19706.  ────────────────────────────────────────────────────────────────────────────
  19707.  
  19708.    char *strtok( char *string1, const char *string2 );
  19709.  
  19710.  Include                           STRING.H
  19711.  
  19712.  string1                           String containing token(s)
  19713.  
  19714.  string2                           Set of delimiter characters
  19715.  
  19716.  Returns                           A pointer to the first token in string1;
  19717.                                    successive calls against the same string
  19718.                                    return the subsequent tokens in the
  19719.                                    string
  19720.  
  19721.  Reads string1 as a series of zero or more tokens and string2 as the set of
  19722.  characters serving as delimiters of the tokens in string1. Inserts a null
  19723.  character each time it is called, modifying string1.
  19724.  
  19725.   ANSI   DOS   OS/2   UNIX   XENIX
  19726.  
  19727.  
  19728.  
  19729.  strtol
  19730.  ────────────────────────────────────────────────────────────────────────────
  19731.  
  19732.    long strtol( const char *nptr, char **endptr, int base );
  19733.  
  19734.  Include                           STDLIB.H, ERRNO.H
  19735.  
  19736.  nptr                              String to convert
  19737.  
  19738.  endptr                            Pointer to the character causing the end
  19739.                                    of scan
  19740.  
  19741.  base                              Number base to use
  19742.  
  19743.  Returns                           The value represented in the string if
  19744.                                    successful; LONG_MAX or LONG_MIN on
  19745.                                    overflow; 0 otherwise
  19746.  
  19747.  errno                             ERANGE
  19748.  
  19749.  Converts a character string to a long-integer value.
  19750.  
  19751.   ANSI   DOS   OS/2   UNIX   XENIX
  19752.  
  19753.  
  19754.  
  19755.  _strtold
  19756.  ────────────────────────────────────────────────────────────────────────────
  19757.  
  19758.    long double _strtold( const char *nptr, char **endptr );
  19759.  
  19760.  Include                           STDLIB.H, ERRNO.H
  19761.  
  19762.  nptr                              String to convert
  19763.  
  19764.  endptr                            Pointer to the character causing the end
  19765.                                    of scan
  19766.  
  19767.  Returns                           The long double-precision value of the
  19768.                                    floating-point number if successful;
  19769.                                    _LHUGE_VAL on overflow; 0 otherwise
  19770.  
  19771.  errno                             ERANGE
  19772.  
  19773.  Converts a character string to a long double-precision floating-point value.
  19774.  
  19775.  
  19776.   ANSI   DOS   OS/2   UNIX   XENIX
  19777.  
  19778.  
  19779.  
  19780.  strtoul
  19781.  ────────────────────────────────────────────────────────────────────────────
  19782.  
  19783.    unsigned long strtoul( const char *nptr, char **endptr, int base );
  19784.  
  19785.  Include                           STDLIB.H, ERRNO.H
  19786.  
  19787.  nptr                              String to convert
  19788.  
  19789.  endptr                            Pointer to the character causing the end
  19790.                                    of scan
  19791.  
  19792.  base                              Number base to use
  19793.  
  19794.  Returns                           The converted value if successful;
  19795.                                    ULONG_MAX on overflow;
  19796.                                    0 otherwise
  19797.  
  19798.  errno                             ERANGE
  19799.  
  19800.  Converts a character string to an unsigned-long-integer value.
  19801.  
  19802.   ANSI   DOS   OS/2   UNIX   XENIX
  19803.  
  19804.  
  19805.  
  19806.  strupr
  19807.  ────────────────────────────────────────────────────────────────────────────
  19808.  
  19809.    char *strupr( char *string );
  19810.  
  19811.  Include                           STRING.H
  19812.  
  19813.  string                            String to be capitalized
  19814.  
  19815.  Returns                           A pointer to the converted string
  19816.  
  19817.  Converts any lowercase letters in string to uppercase. Other characters are
  19818.  not affected.
  19819.  
  19820.   ANSI   DOS   OS/2   UNIX   XENIX
  19821.  
  19822.  
  19823.  
  19824.  strxfrm
  19825.  ────────────────────────────────────────────────────────────────────────────
  19826.  
  19827.    size_t strxfrm( char *string1, const char *string2, size_t count );
  19828.  
  19829.  Include                           STRING.H
  19830.  
  19831.  string1                           Result string
  19832.  
  19833.  string2                           Source string
  19834.  
  19835.  count                             Number of characters transformed
  19836.  
  19837.  Returns                           The length of the transformed string,
  19838.                                    excluding the terminating null character
  19839.                                    ('\0').
  19840.  
  19841.  Transforms the string pointed to by string2 into a new form, based on
  19842.  locale-specific information and stores the result in string1.
  19843.  
  19844.   ANSI   DOS   OS/2   UNIX   XENIX
  19845.  
  19846.  
  19847.  
  19848.  swab
  19849.  ────────────────────────────────────────────────────────────────────────────
  19850.  
  19851.    void swab( char *source, char *dest, int n );
  19852.  
  19853.  Include                           STDLIB.H
  19854.  
  19855.  source                            Data to be copied and swapped
  19856.  
  19857.  dest                              Storage location for swapped data
  19858.  
  19859.  n                                 Number of bytes copied
  19860.  
  19861.  Returns                           No return value
  19862.  
  19863.  Copies n bytes from source, swaps each pair of adjacent bytes, and stores
  19864.  the result at dest.
  19865.  
  19866.   ANSI   DOS   OS/2   UNIX   XENIX
  19867.  
  19868.  
  19869.  
  19870.  system
  19871.  ────────────────────────────────────────────────────────────────────────────
  19872.  
  19873.    int system( const char *command );
  19874.  
  19875.  Include                           PROCESS.H, STDLIB.H, ERRNO.H
  19876.  
  19877.  command                           Command to be executed
  19878.  
  19879.  Returns                           A nonzero value if command is NULL and
  19880.                                    the command interpreter is found;
  19881.                                    otherwise, the return code from spawning
  19882.                                    the command
  19883.                                    interpreter
  19884.  
  19885.  errno                             E2BIG, ENOENT, ENOEXEC, ENOMEM
  19886.  
  19887.  Passes command to the command interpreter and executes the string as an
  19888.  operating system command.
  19889.  
  19890.   ANSI   DOS   OS/2   UNIX   XENIX
  19891.  
  19892.  
  19893.  
  19894.  tan
  19895.  ────────────────────────────────────────────────────────────────────────────
  19896.  
  19897.    double tan( double x );
  19898.  
  19899.  Include                           MATH.H, ERRNO.H
  19900.  
  19901.  x                                 Angle in radians
  19902.  
  19903.  Returns                           The tangent of x if successful; 0 if not
  19904.  
  19905.  errno                             ERANGE
  19906.  
  19907.  Calculates the tangent of x.
  19908.  
  19909.   ANSI   DOS   OS/2   UNIX   XENIX
  19910.  
  19911.  
  19912.  
  19913.  tanh
  19914.  ────────────────────────────────────────────────────────────────────────────
  19915.  
  19916.    double tanh( double x );
  19917.  
  19918.  Include                           MATH.H
  19919.  
  19920.  x                                 Angle in radians
  19921.  
  19922.  Returns                           The hyperbolic tangent of x
  19923.  
  19924.  Calculates the hyperbolic tangent of x.
  19925.  
  19926.   ANSI   DOS   OS/2   UNIX   XENIX
  19927.  
  19928.  
  19929.  
  19930.  tanhl
  19931.  ────────────────────────────────────────────────────────────────────────────
  19932.  
  19933.    long double tanhl( long double x );
  19934.  
  19935.  Include                           MATH.H
  19936.  
  19937.  x                                 Angle in radians
  19938.  
  19939.  Returns                           The hyperbolic tangent of x
  19940.  
  19941.  Calculates the hyperbolic tangent of x. Long double-precision floating-point
  19942.  version of tanh.
  19943.  
  19944.   ANSI   DOS   OS/2   UNIX   XENIX
  19945.  
  19946.  
  19947.  
  19948.  
  19949.  
  19950.  
  19951.  tanl
  19952.  ────────────────────────────────────────────────────────────────────────────
  19953.  
  19954.    long double tanl( long double x );
  19955.  
  19956.  Include                           MATH.H, ERRNO.H
  19957.  
  19958.  x                                 Angle in radians
  19959.  
  19960.  Returns                           The tangent of x if successful; 0 if not
  19961.  
  19962.  errno                             ERANGE
  19963.  
  19964.  Calculates the tangent of x. Long double-precision floating-point version of
  19965.  tan.
  19966.  
  19967.   ANSI   DOS   OS/2   UNIX   XENIX
  19968.  
  19969.  
  19970.  
  19971.  tell
  19972.  ────────────────────────────────────────────────────────────────────────────
  19973.  
  19974.    long tell( int handle );
  19975.  
  19976.  Include                           IO.H, ERRNO.H
  19977.  
  19978.  handle                            Handle referring to open file
  19979.  
  19980.  Returns                           The current position of the file pointer
  19981.                                    (if any) associated with handle if
  19982.                                    successful; -1L if not
  19983.  
  19984.  errno                             EBADF
  19985.  
  19986.  Gets the current position of any file pointer associated with handle.
  19987.  
  19988.   ANSI   DOS   OS/2   UNIX   XENIX
  19989.  
  19990.  
  19991.  
  19992.  tempnam
  19993.  ────────────────────────────────────────────────────────────────────────────
  19994.  
  19995.    char *tempnam( char *dir, char *prefix );
  19996.  
  19997.  Include                           STDIO.H
  19998.  
  19999.  dir                               Target directory if TMP environment
  20000.                                    variable not defined
  20001.  
  20002.  prefix                            File-name prefix
  20003.  
  20004.  Returns                           A pointer to the name generated if
  20005.                                    successful; NULL if not
  20006.  
  20007.  Creates a temporary file in another directory.
  20008.  
  20009.   ANSI   DOS   OS/2   UNIX   XENIX
  20010.  
  20011.  
  20012.  
  20013.  time
  20014.  ────────────────────────────────────────────────────────────────────────────
  20015.  
  20016.    time_t time( time_t *timer );
  20017.  
  20018.  Include                           TIME.H
  20019.  
  20020.  timer                             Storage location for time
  20021.  
  20022.  Returns                           The time in elapsed seconds
  20023.  
  20024.  Returns the number of seconds elapsed since 00:00:00 Greenwich mean time
  20025.  (GMT), January 1, 1970, according to the system clock.
  20026.  
  20027.   ANSI   DOS   OS/2   UNIX   XENIX
  20028.  
  20029.  
  20030.  
  20031.  tmpfile
  20032.  ────────────────────────────────────────────────────────────────────────────
  20033.  
  20034.    FILE *tmpfile( void );
  20035.  
  20036.  Include                           STDIO.H
  20037.  
  20038.  Returns                           A stream pointer if successful; a null
  20039.                                    pointer if not
  20040.  
  20041.  Creates a temporary file and returns a stream pointer to that file.
  20042.  
  20043.   ANSI   DOS   OS/2   UNIX   XENIX
  20044.  
  20045.  
  20046.  
  20047.  tmpnam
  20048.  ────────────────────────────────────────────────────────────────────────────
  20049.  
  20050.    char *tmpnam( char *string );
  20051.  
  20052.  Include                           STDIO.H
  20053.  
  20054.  string                            Pointer to temporary name
  20055.  
  20056.  Returns                           A pointer to the name generated if
  20057.                                    successful; NULL if not
  20058.  
  20059.  Generates a string that can be used as the name of a temporary file.
  20060.  
  20061.   ANSI   DOS   OS/2   UNIX   XENIX
  20062.  
  20063.  
  20064.  
  20065.  toascii
  20066.  ────────────────────────────────────────────────────────────────────────────
  20067.  
  20068.    int toascii( int c );
  20069.  
  20070.  Include                           CTYPE.H
  20071.  
  20072.  c                                 Character to be converted
  20073.  
  20074.  Returns                           The converted character
  20075.  
  20076.  Sets all but the low-order 7 bits of c to 0, so that the converted value
  20077.  represents a character in the ASCII character set. If c already represents
  20078.  an ASCII character, c is unchanged.
  20079.  
  20080.   ANSI   DOS   OS/2   UNIX   XENIX
  20081.  
  20082.  
  20083.  
  20084.  tolower
  20085.  ────────────────────────────────────────────────────────────────────────────
  20086.  
  20087.    int tolower( int c );
  20088.  
  20089.  Include                           CTYPE.H
  20090.  
  20091.  c                                 Character to be converted
  20092.  
  20093.  Returns                           The lowercase character corresponding to
  20094.                                    c
  20095.  
  20096.  Converts c to lowercase if c represents an uppercase letter. Otherwise, c is
  20097.  unchanged.
  20098.  
  20099.   ANSI   DOS   OS/2   UNIX   XENIX
  20100.  
  20101.  
  20102.  
  20103.  _tolower
  20104.  ────────────────────────────────────────────────────────────────────────────
  20105.  
  20106.    int _tolower( int c );
  20107.  
  20108.  Include                           CTYPE.H
  20109.  
  20110.  c                                 Character to be converted
  20111.  
  20112.  Returns                           The lowercase character corresponding to
  20113.                                    c
  20114.  
  20115.  Converts c to lowercase. To be used only if c is known to be an uppercase
  20116.  letter. The result is undefined if c is not an uppercase letter.
  20117.  
  20118.   ANSI   DOS   OS/2   UNIX   XENIX
  20119.  
  20120.  
  20121.  
  20122.  toupper
  20123.  ────────────────────────────────────────────────────────────────────────────
  20124.  
  20125.    int toupper( int c );
  20126.  
  20127.  Include                           CTYPE.H
  20128.  
  20129.  c                                 Character to be converted
  20130.  
  20131.  Returns                           The uppercase character corresponding to
  20132.                                    c
  20133.  
  20134.  Converts c to uppercase if c represents a lowercase letter. Otherwise, c is
  20135.  unchanged.
  20136.  
  20137.   ANSI   DOS   OS/2   UNIX   XENIX
  20138.  
  20139.  
  20140.  
  20141.  _toupper
  20142.  ────────────────────────────────────────────────────────────────────────────
  20143.  
  20144.    int _toupper( int c );
  20145.  
  20146.  Include                           CTYPE.H
  20147.  
  20148.  c                                 Character to be converted
  20149.  
  20150.  Returns                           The uppercase character corresponding to
  20151.                                    c
  20152.  
  20153.  Converts c to uppercase. To be used only if c is known to be a lowercase
  20154.  letter. The result is undefined if c is not a lowercase letter.
  20155.  
  20156.   ANSI   DOS   OS/2   UNIX   XENIX
  20157.  
  20158.  
  20159.  
  20160.  tzset
  20161.  ────────────────────────────────────────────────────────────────────────────
  20162.  
  20163.    void tzset( void );
  20164.  
  20165.  Include                           TIME.H
  20166.  
  20167.  Returns                           No return value
  20168.  
  20169.  Using the current setting of the environment variable TZ, assigns values to
  20170.  the global variables daylight, timezone, and tzname, which are used by the
  20171.  ftime and localtime functions to make corrections from GMT to local time,
  20172.  and by time to compute GMT from system time.
  20173.  
  20174.   ANSI   DOS   OS/2   UNIX   XENIX
  20175.  
  20176.  
  20177.  
  20178.  ultoa
  20179.  ────────────────────────────────────────────────────────────────────────────
  20180.  
  20181.    char *ultoa( unsigned long value, char *string, int radix );
  20182.  
  20183.  Include                           STDLIB.H
  20184.  
  20185.  value                             Number to be converted
  20186.  
  20187.  string                            String result
  20188.  
  20189.  radix                             Base of value
  20190.  
  20191.  Returns                           A pointer to string
  20192.  
  20193.  Converts the digits of value to a null-terminated character string and
  20194.  stores the result (up to 33 bytes) in string.
  20195.  
  20196.   ANSI   DOS   OS/2   UNIX   XENIX
  20197.  
  20198.  
  20199.  
  20200.  umask
  20201.  ────────────────────────────────────────────────────────────────────────────
  20202.  
  20203.    int umask( int pmode );
  20204.  
  20205.  Include                           SYS\TYPES.H, SYS\STAT.H, IO.H
  20206.  
  20207.  pmode                             S_IWRITE, S_IREAD
  20208.  
  20209.  Returns                           The previous value of pmode
  20210.  
  20211.  Sets the file-permission mask of the current process to the mode specified
  20212.  by pmode. The file-permission mask is used to modify the permission setting
  20213.  of new files created by creat, open, or sopen.
  20214.  
  20215.   ANSI   DOS   OS/2   UNIX   XENIX
  20216.  
  20217.  
  20218.  
  20219.  ungetc
  20220.  ────────────────────────────────────────────────────────────────────────────
  20221.  
  20222.    int ungetc( int c, FILE *stream );
  20223.  
  20224.  Include                           STDIO.H
  20225.  
  20226.  c                                 Character to be pushed
  20227.  
  20228.  stream                            Pointer to target stream
  20229.  
  20230.  Returns                           The character argument c if successful;
  20231.                                    EOF if not
  20232.  
  20233.  Pushes the character c back onto the input stream and clears the end-of-file
  20234.  indicator. A subsequent read operation on the stream begins with c.
  20235.  
  20236.   ANSI   DOS   OS/2   UNIX   XENIX
  20237.  
  20238.  
  20239.  
  20240.  ungetch
  20241.  ────────────────────────────────────────────────────────────────────────────
  20242.  
  20243.    int ungetch( int c );
  20244.  
  20245.  Include                           CONIO.H
  20246.  
  20247.  c                                 Character to be pushed
  20248.  
  20249.  Returns                           The character argument c if successful;
  20250.                                    EOF if not
  20251.  
  20252.  Pushes the character c back to the console, causing c to be the next
  20253.  character read by getch or getche.
  20254.  
  20255.   ANSI   DOS   OS/2   UNIX   XENIX
  20256.  
  20257.  
  20258.  
  20259.  unlink
  20260.  ────────────────────────────────────────────────────────────────────────────
  20261.  
  20262.    int unlink( const char *filename );
  20263.  
  20264.  Include                           IO.H or STDIO.H, ERRNO.H
  20265.  
  20266.  filename                          Path name of file to be removed
  20267.  
  20268.  Returns                           0 if successful; -1 if not
  20269.  
  20270.  errno                             EACCESS, ENOENT
  20271.  
  20272.  Deletes the file specified by filename.
  20273.  
  20274.   ANSI   DOS   OS/2   UNIX   XENIX
  20275.  
  20276.  
  20277.  
  20278.  _unregisterfonts
  20279.  ────────────────────────────────────────────────────────────────────────────
  20280.  
  20281.    void _far _unregisterfonts( void );
  20282.  
  20283.  Include                           GRAPH.H
  20284.  
  20285.  Returns                           No return value
  20286.  
  20287.  Frees memory previously allocated and used by the _registerfonts function.
  20288.  The _unregisterfonts function removes the header information for all fonts
  20289.  and unloads the currently selected font data from memory.
  20290.  
  20291.   ANSI   DOS   OS/2   UNIX   XENIX
  20292.  
  20293.  
  20294.  
  20295.  utime
  20296.  ────────────────────────────────────────────────────────────────────────────
  20297.  
  20298.    int utime( char *filename, struct utimbuf *times );
  20299.  
  20300.  Include                           SYS\TYPES.H, SYS\UTIME.H, ERRNO.H
  20301.  
  20302.  filename                          File path name
  20303.  
  20304.  times                             Pointer to stored time values
  20305.  
  20306.  Returns                           0 if successful; -1 if not
  20307.  
  20308.  errno                             EACCESS, EINVAL, EMFILE, ENOENT
  20309.  
  20310.  Sets the modification time for the file specified by filename.
  20311.  
  20312.   ANSI   DOS   OS/2   UNIX   XENIX
  20313.  
  20314.  
  20315.  
  20316.  va_arg
  20317.  ────────────────────────────────────────────────────────────────────────────
  20318.  
  20319.    type va_arg( va_list arg_ptr, type );
  20320.  
  20321.  Include                           STDARG.H (ANSI) or VARARGS.H (UNIX)
  20322.  
  20323.  type                              Type of argument to be retrieved
  20324.  
  20325.  arg_ptr                           Pointer to list of arguments
  20326.  
  20327.  va_alist                          Name of parameter to called function
  20328.                                    (UNIX version only)
  20329.  
  20330.  va_dcl                            Declaration of va_alist (UNIX version
  20331.                                    only)
  20332.  
  20333.  Returns                           The current argument
  20334.  
  20335.  Retrieves a value of type from the location given by arg_ptr. Note that
  20336.  va_list is defined as the type of va_alist.
  20337.  
  20338.   ANSI   DOS   OS/2   UNIX   XENIX
  20339.  
  20340.  
  20341.  
  20342.  va_end
  20343.  ────────────────────────────────────────────────────────────────────────────
  20344.  
  20345.    void va_end( va_list arg_ptr );
  20346.  
  20347.  Include                           STDARG.H or VARARGS.H
  20348.  
  20349.  arg_ptr                           Pointer to list of arguments
  20350.  
  20351.  va_alist                          Name of parameter to called function
  20352.                                    (UNIX version only)
  20353.  
  20354.  va_dcl                            Declaration of va_alist (UNIX version
  20355.                                    only)
  20356.  
  20357.  Returns                           No return value
  20358.  
  20359.  Resets arg_ptr to NULL. Note that va_list is defined as the type of
  20360.  va_alist.
  20361.  
  20362.   ANSI   DOS   OS/2   UNIX   XENIX
  20363.  
  20364.  
  20365.  
  20366.  va_start
  20367.  ────────────────────────────────────────────────────────────────────────────
  20368.  
  20369.    void va_start( va_list arg_ptr ); (UNIX version)
  20370.  
  20371.    void va_start( va_list arg_ptr, prev_param ); (ANSI version)
  20372.  
  20373.  Include                           STDARG.H or VARARGS.H
  20374.  
  20375.  arg_ptr                           Pointer to list of arguments
  20376.  
  20377.  prev_param                        Parameter preceding first optional
  20378.                                    argument (ANSI version only)
  20379.  
  20380.  va_alist                          Name of parameter to called function
  20381.                                    (UNIX version only)
  20382.  
  20383.  va_dcl                            Declaration of va_alist (UNIX version
  20384.                                    only)
  20385.  
  20386.  Returns                           No return value
  20387.  
  20388.  Sets arg_ptr to beginning of list of optional arguments passed to the
  20389.  function used before va_arg. Note that va_list is defined as the type of
  20390.  va_alist.
  20391.  
  20392.   ANSI   DOS   OS/2   UNIX   XENIX
  20393.  
  20394.  
  20395.  
  20396.  vfprintf
  20397.  ────────────────────────────────────────────────────────────────────────────
  20398.  
  20399.    int vfprintf( FILE *stream, const char *format, va_list argptr );
  20400.  
  20401.  Include                           STDARG.H or VARARGS.H, STDIO.H
  20402.  
  20403.  stream                            Pointer to target stream
  20404.  
  20405.  format                            Format control string
  20406.  
  20407.  argptr                            Pointer to list of arguments
  20408.  
  20409.  Returns                           The number of characters written if
  20410.                                    successful; a negative value
  20411.                                    if not
  20412.  
  20413.  Formats and outputs data to stream.
  20414.  
  20415.   ANSI   DOS   OS/2   UNIX   XENIX
  20416.  
  20417.  
  20418.  
  20419.  vprintf
  20420.  ────────────────────────────────────────────────────────────────────────────
  20421.  
  20422.    int vprintf( const char *format, va_list argptr );
  20423.  
  20424.  Include                           STDARG.H or VARARGS.H, STDIO.H
  20425.  
  20426.  format                            Format control string
  20427.  
  20428.  argptr                            Pointer to list of arguments
  20429.  
  20430.  Returns                           The number of characters written, not
  20431.                                    counting the terminating null character
  20432.                                    ('\0'), if successful; a negative value
  20433.                                    if not
  20434.  
  20435.  Formats and outputs data to the standard output stream, stdout.
  20436.  
  20437.   ANSI   DOS   OS/2   UNIX   XENIX
  20438.  
  20439.  
  20440.  
  20441.  vsprintf
  20442.  ────────────────────────────────────────────────────────────────────────────
  20443.  
  20444.    int vsprintf( char *buffer, const char *format, va_list argptr );
  20445.  
  20446.  Include                           STDARG.H or VARARGS.H, STDIO.H
  20447.  
  20448.  buffer                            Storage location for output
  20449.  
  20450.  format                            Format control string
  20451.  
  20452.  argptr                            Pointer to list of arguments
  20453.  
  20454.  Returns                           The number of characters written, not
  20455.                                    counting the terminating null character
  20456.                                    ('\0'), if successful; a negative value
  20457.                                    if not
  20458.  
  20459.  Formats and outputs data to buffer.
  20460.  
  20461.   ANSI   DOS   OS/2   UNIX   XENIX
  20462.  
  20463.  
  20464.  
  20465.  wait
  20466.  ────────────────────────────────────────────────────────────────────────────
  20467.  
  20468.    int wait( int *termstat );
  20469.  
  20470.  Include                           PROCESS.H, ERRNO.H
  20471.  
  20472.  termstat                          Child process termination status and
  20473.                                    return code buffer
  20474.  
  20475.  Returns                           The child process identification if
  20476.                                    returning after normal child process
  20477.                                    termination; -1 if returning after
  20478.                                    abnormal child process termination; or
  20479.                                    -1 immediately otherwise
  20480.  
  20481.  errno                             ECHILD, EINTR
  20482.  
  20483.  Suspends the calling process until any of the caller's immediate child
  20484.  processes terminate. If all of the caller's children have terminated before
  20485.  it calls the wait function, the function returns immediately.
  20486.  
  20487.   ANSI   DOS   OS/2   UNIX   XENIX
  20488.  
  20489.  
  20490.  
  20491.  _wrapon
  20492.  ────────────────────────────────────────────────────────────────────────────
  20493.  
  20494.    short _far _wrapon( short option );
  20495.  
  20496.  Include                           GRAPH.H
  20497.  
  20498.  option                            _GWRAPOFF, _GWRAPON
  20499.  
  20500.  Returns                           The previous value of option
  20501.  
  20502.  Controls whether text output with the _outtext and _outmem functions wraps
  20503.  to a new line or is simply truncated when the text output reaches the edge
  20504.  of the current text window.
  20505.  
  20506.   ANSI   DOS   OS/2   UNIX   XENIX
  20507.  
  20508.  
  20509.  
  20510.  write
  20511.  ────────────────────────────────────────────────────────────────────────────
  20512.  
  20513.    int write( int handle, void *buffer, unsigned int count );
  20514.  
  20515.  Include                           IO.H, ERRNO.H
  20516.  
  20517.  handle                            Handle referring to open file
  20518.  
  20519.  buffer                            Data to be written
  20520.  
  20521.  count                             Number of bytes
  20522.  
  20523.  Returns                           The number of bytes actually written if
  20524.                                    successful; -1 if not
  20525.  
  20526.  errno                             EBADF, ENOSPC
  20527.  
  20528.  Writes count bytes from buffer into the file associated with handle. The
  20529.  write operation begins at the current position in the file. If the file is
  20530.  open for appending, the operation begins at the current end of the file.
  20531.  
  20532.   ANSI   DOS   OS/2   UNIX   XENIX
  20533.  
  20534.  
  20535.  
  20536.  yn
  20537.  ────────────────────────────────────────────────────────────────────────────
  20538.  
  20539.    double yn( int n, double x );
  20540.  
  20541.  Include                           MATH.H, ERRNO.H
  20542.  
  20543.  n                                 Integer order
  20544.  
  20545.  x                                 Floating-point value
  20546.  
  20547.  Returns                           The result of a Bessel function of x; -
  20548.                                    HUGE_VAL if x is negative
  20549.  
  20550.  errno                             EDOM
  20551.  
  20552.  Returns the Bessel function of the second kind (order n).
  20553.  
  20554.   ANSI   DOS   OS/2   UNIX   XENIX
  20555.  
  20556.  
  20557.  
  20558.  _ynl
  20559.  ────────────────────────────────────────────────────────────────────────────
  20560.  
  20561.    long double _ynl( int n, long double x );
  20562.  
  20563.  Include                           MATH.H, ERRNO.H
  20564.  
  20565.  n                                 Integer order
  20566.  
  20567.  x                                 Long double-precision floating-point
  20568.                                    value
  20569.  
  20570.  Returns                           The result of a Bessel function of x; -
  20571.                                    _LHUGE_VAL if x is negative
  20572.  
  20573.  errno                             EDOM
  20574.  
  20575.  Returns the Bessel function of the second kind (order n). Long
  20576.  double-precision floating-point version of yn.
  20577.  
  20578.   ANSI   DOS   OS/2   UNIX   XENIX
  20579.  
  20580.  
  20581.  
  20582.  y1
  20583.  ────────────────────────────────────────────────────────────────────────────
  20584.  
  20585.    double y1( double x );
  20586.  
  20587.  Include                           MATH.H, ERRNO.H
  20588.  
  20589.  x                                 Floating-point value
  20590.  
  20591.  Returns                           The result of a Bessel function of x; -
  20592.                                    HUGE_VAL if x is negative
  20593.  
  20594.  errno                             EDOM
  20595.  
  20596.  Returns the Bessel function of the second kind (order 1).
  20597.  
  20598.   ANSI   DOS   OS/2   UNIX   XENIX
  20599.  
  20600.  
  20601.  
  20602.  _y1l
  20603.  ────────────────────────────────────────────────────────────────────────────
  20604.  
  20605.    long double _y1l( long double x );
  20606.  
  20607.  Include                           MATH.H, ERRNO.H
  20608.  
  20609.  x                                 Long double-precision floating-point
  20610.                                    value
  20611.  
  20612.  Returns                           The result of a Bessel function of x; -
  20613.                                    _LHUGE_VAL if x is negative
  20614.  
  20615.  errno                             EDOM
  20616.  
  20617.  Returns the Bessel function of the second kind (order 1). Long
  20618.  double-precision floating-point version of y1.
  20619.  
  20620.   ANSI   DOS   OS/2   UNIX   XENIX
  20621.  
  20622.  
  20623.  
  20624.  y0
  20625.  ────────────────────────────────────────────────────────────────────────────
  20626.  
  20627.    double y0( double x );
  20628.  
  20629.  Include                           MATH.H, ERRNO.H
  20630.  
  20631.  x                                 Floating-point value
  20632.  
  20633.  Returns                           The result of a Bessel function of x; -
  20634.                                    HUGE_VAL if x is negative
  20635.  
  20636.  errno                             EDOM
  20637.  
  20638.  Returns the Bessel function of the second kind (order 0).
  20639.  
  20640.   ANSI   DOS   OS/2   UNIX   XENIX
  20641.  
  20642.  
  20643.  
  20644.  _y0l
  20645.  ────────────────────────────────────────────────────────────────────────────
  20646.  
  20647.    long double _y0l( long double x );
  20648.  
  20649.  Include                           MATH.H, ERRNO.H
  20650.  
  20651.  x                                 Long double-precision floating-point
  20652.                                    value
  20653.  
  20654.  Returns                           The result of a Bessel function of x; -
  20655.                                    _LHUGE_VAL if x is negative
  20656.  
  20657.  errno                             EDOM
  20658.  
  20659.  Returns the Bessel function of the second kind (order 0). Long
  20660.  double-precision floating-point version of y0.
  20661.  
  20662.   ANSI   DOS   OS/2   UNIX   XENIX
  20663.  
  20664.  
  20665.  
  20666.  
  20667.  
  20668.  
  20669.  
  20670.  Appendix A  printf/scanf Format Specifiers
  20671.  ────────────────────────────────────────────────────────────────────────────
  20672.  
  20673.  The following gives the format syntax for printf and scanf.
  20674.  
  20675.  
  20676.  printf Syntax
  20677.  
  20678.    % «flags»«width» «.precision»«{F|N|h|l|L}»type
  20679.  
  20680.  
  20681.  scanf Syntax
  20682.  
  20683.    % «*»«width» «{F|N}»«{h|l}»type
  20684.  
  20685. ╓┌──────────┌────────────────────────┌────────────────────────┌───────┌──────╖
  20686.  Field      Description                                       printf  scanf
  20687.  Field      Description                                       printf  scanf
  20688.  ────────────────────────────────────────────────────────────────────────────
  20689.  flags      Characters that justify                           Yes     No
  20690.             output and control the
  20691.             printing of signs,
  20692.             blanks, decimal points,
  20693.             and octal and
  20694.             hexadecimal prefixes
  20695.  
  20696.             Code                     Description
  20697.  
  20698.             -                        Left justifies           Yes     No
  20699.  
  20700.                                      Prefixes signed output   Yes     No
  20701.                                      with + or -
  20702.                                      Always printed with
  20703.                                      sign
  20704.  
  20705.             0                        Adds leading zeros to    Yes     No
  20706.                                      reach minimum width
  20707.  
  20708.  Field      Description                                       printf  scanf
  20709.  ────────────────────────────────────────────────────────────────────────────
  20710. 
  20711.             blank (' ')              Prefixes zero or signed  Yes     No
  20712.                                      positive value with a
  20713.                                      blank
  20714.  
  20715.             #                        1.  With o, x, X:        Yes     No
  20716.                                      Prefixes nonzero output
  20717.                                      value
  20718.                                      with 0, 0x, or 0X
  20719.                                      2.  With e, E, f:
  20720.                                      Inserts decimal point
  20721.                                      3.  With g, G: Inserts
  20722.                                      decimal point and does
  20723.                                           not truncate
  20724.                                      trailing zeros
  20725.  
  20726.  *          Suppresses assignment                             No      Yes
  20727.             of the next field
  20728.  
  20729.  Field      Description                                       printf  scanf
  20730.  ────────────────────────────────────────────────────────────────────────────
  20731. 
  20732.  width      Specifies minimum width                           Yes     Yes
  20733.             in characters. For
  20734.             printf: If width is an
  20735.             asterisk (*), the width
  20736.             is determined by the
  20737.             next argument,
  20738.             an integer. This width
  20739.             argument precedes the
  20740.             argument being
  20741.             formatted.
  20742.  
  20743.  precision  Specifies precision in                            Yes     No
  20744.             number of digits and
  20745.             decimal places. If
  20746.             precision is an
  20747.             asterisk (*), the
  20748.             precision is determined
  20749.             by the next argument,
  20750.  Field      Description                                       printf  scanf
  20751.  ────────────────────────────────────────────────────────────────────────────
  20752.            by the next argument,
  20753.             an integer. This
  20754.             precision argument
  20755.             precedes the argument
  20756.             being formatted.
  20757.  
  20758.             1. With d, i, u, o, x,
  20759.             X: Specifies minimum
  20760.             number of digits.
  20761.                 If number is less
  20762.             than precision, pads
  20763.             output value on the
  20764.             left
  20765.                 with zeros. Does
  20766.             not truncate values
  20767.             larger than precision.
  20768.             2. With e, E: Specifies
  20769.             number of digits after
  20770.             the decimal point
  20771.  Field      Description                                       printf  scanf
  20772.  ────────────────────────────────────────────────────────────────────────────
  20773.            the decimal point
  20774.                 and rounds the last
  20775.             printed digit.
  20776.             3. With f: Specifies
  20777.             number of digits after
  20778.             the decimal point.
  20779.             4. With g, G: Specifies
  20780.             the maximum number of
  20781.             significant
  20782.                 digits.
  20783.             5. With c: Has no
  20784.             effect.
  20785.             6. With s: Specifies
  20786.             maximum number of
  20787.             characters to be
  20788.                 printed.
  20789.  
  20790.  F          Explicitly indicates                              Yes     Yes
  20791.             far value
  20792.  Field      Description                                       printf  scanf
  20793.  ────────────────────────────────────────────────────────────────────────────
  20794.            far value
  20795.  
  20796.  N          Explicitly indicates                              Yes     Yes
  20797.             near value
  20798.  
  20799.  h          1.  With d, i, o, x, X:                           Yes     Yes
  20800.             Specifies short int
  20801.             2.  With u: Specifies
  20802.             short unsigned int
  20803.  
  20804.  l          1.  With d, i, o, x, X:                           Yes     Yes
  20805.             Specifies long int
  20806.             2.  With u: Specifies
  20807.             long unsigned int
  20808.             3.  With e, E, f, g, G:
  20809.             Specifies double
  20810.  
  20811.  L          With e, E, f, g, G:                               Yes     Yes
  20812.             Specifies long double
  20813.  Field      Description                                       printf  scanf
  20814.  ────────────────────────────────────────────────────────────────────────────
  20815.            Specifies long double
  20816.  
  20817.  
  20818.  
  20819.   Continued on next page
  20820.  
  20821. ╓┌───────┌─────────────────────────┌─────────────────────────┌───────┌───────╖
  20822.  Field   Description                                         printf  scanf
  20823.  ────────────────────────────────────────────────────────────────────────────
  20824.  type    Characters that justify                             Yes     Yes
  20825.          output and control the
  20826.          printing of signs,
  20827.          blanks, decimal points,
  20828.          octal and hexadecimal
  20829.          prefixes
  20830.  
  20831.          Code                      Meaning
  20832.  
  20833.          c                         Single character          Yes     Yes
  20834.  Field   Description                                         printf  scanf
  20835.  ────────────────────────────────────────────────────────────────────────────
  20836.         c                         Single character          Yes     Yes
  20837.  
  20838.          d                         Signed decimal integer    Yes     Yes
  20839.  
  20840.          e, E                      Exponential; case sets    Yes     Yes
  20841.                                    case of exponent key
  20842.  
  20843.          f                         Floating-point value      Yes     Yes
  20844.  
  20845.          g, G                      e or f format; case sets  Yes     Yes
  20846.                                    case of exponent key
  20847.  
  20848.          i                         For printf: Signed        Yes     Yes
  20849.                                    decimal integer
  20850.                                    For scanf: Signed
  20851.                                    decimal, octal, or
  20852.                                    hexadecimal integer
  20853.  
  20854.          n                         Number of bytes           Yes     Yes
  20855.  Field   Description                                         printf  scanf
  20856.  ────────────────────────────────────────────────────────────────────────────
  20857.         n                         Number of bytes           Yes     Yes
  20858.                                    successfully written (
  20859.                                    printf) or read (scanf)
  20860.                                    placed in its
  20861.                                    corresponding argument,
  20862.                                    which is a pointer to an
  20863.                                    integer. No input or
  20864.                                    output is performed.
  20865.  
  20866.          o                         Unsigned octal integer    Yes     Yes
  20867.  
  20868.          p                         Pointer to void; prints   Yes     Yes
  20869.                                    address pointed to by
  20870.                                    the argument
  20871.  
  20872.          s                         Null-terminated string    Yes     Yes
  20873.  
  20874.          u                         Unsigned decimal integer  Yes     Yes
  20875.  
  20876.  Field   Description                                         printf  scanf
  20877.  ────────────────────────────────────────────────────────────────────────────
  20878. 
  20879.          x, X                      For printf: Unsigned      Yes     Yes
  20880.                                    hexadecimal integer
  20881.                                    using "abcdef"or
  20882.                                    "ABCDEF"
  20883.                                    For scanf: Unsigned
  20884.                                    hexadecimal integer
  20885.  
  20886.  
  20887.  
  20888.  
  20889.  
  20890.  
  20891.  
  20892.  
  20893.  
  20894.  
  20895.  Appendix B  Compiler Limits and Numerical Ranges
  20896.  ────────────────────────────────────────────────────────────────────────────
  20897.  
  20898.  
  20899.  Compiler Limits
  20900.  
  20901.  
  20902.  Limits Imposed by the C Compiler
  20903.  
  20904. ╓┌────────────────────────────────────┌──────────────────────────────────────╖
  20905.  Item                                 Limit
  20906.  ────────────────────────────────────────────────────────────────────────────
  20907.  String literals                      2,048 bytes, including the
  20908.                                       terminating null character ('\0')
  20909.  
  20910.  Constants                            Determined by its type; see on-line
  20911.                                       help
  20912.  
  20913.  Identifiers                          31 bytes (additional characters are
  20914.                                       discarded)
  20915.  
  20916.  Declarations                         15 levels of nesting for structure
  20917.                                       and union definitions
  20918.  Item                                 Limit
  20919.  ────────────────────────────────────────────────────────────────────────────
  20920.                                      and union definitions
  20921.  
  20922.  Macro definition                     6K bytes, 255 formal arguments
  20923.  
  20924.  Macro expansion                      6K
  20925.  
  20926.  Preprocessor arguments               3K (approximately)
  20927.  
  20928.  if, #ifdef, and #ifndef directives   16 levels of nesting
  20929.  
  20930.  Include files                        10 levels of nesting
  20931.  
  20932.  Initialization                       30 levels of nesting
  20933.  
  20934.  ────────────────────────────────────────────────────────────────────────────
  20935.  
  20936.  
  20937.  
  20938.  
  20939.  Program Limits at Run Time
  20940.  
  20941. ╓┌─────────────────────────────────────┌─────────────────────────────────────╖
  20942.  Item                                  Limit
  20943.  ────────────────────────────────────────────────────────────────────────────
  20944.  File size                             232 - 1 bytes (4 gigabytes)
  20945.  
  20946.  Open files (streams)                  20(a)
  20947.  
  20948.  Command line (DOS)                    128 characters (including program
  20949.                                        name)
  20950.  
  20951.  Environment table (DOS)               32K
  20952.  
  20953.  Command line and environment table    32K, combined
  20954.  (OS/2)
  20955.  
  20956.  ────────────────────────────────────────────────────────────────────────────
  20957.  
  20958.  
  20959.  
  20960.  (a) The default number of open files and streams allowed can be modified.
  20961.  See _NFILE_ and CRT0DAT in on-line help.
  20962.  
  20963.  
  20964.  
  20965.  Numerical Ranges
  20966.  
  20967.  
  20968.  Data Ranges Defined in LIMITS.H
  20969.  
  20970. ╓┌──────────────────┌─────────────────────────────┌──────────────────────────╖
  20971.  Manifest Constant  Description                   Value
  20972.  ────────────────────────────────────────────────────────────────────────────
  20973.  CHAR_MAX           Maximum char value            127(a)
  20974.  CHAR_MIN           Minimum char value            -127a
  20975.  CHAR_MAX           Maximum char value            255(a)
  20976.  CHAR_MIN           Minimum char value            0(a)
  20977.  SCHAR_MAX          Maximum signed char value     127
  20978.  SCHAR_MIN          Minimum signed char value     -127
  20979.  UCHAR_MAX          Maximum unsigned char value   255
  20980.  CHAR_BIT           Number of bits in a char      8
  20981.  Manifest Constant  Description                   Value
  20982.  ────────────────────────────────────────────────────────────────────────────
  20983. CHAR_BIT           Number of bits in a char      8
  20984.  USHRT_MAX          Maximum unsigned short value  65,535
  20985.  SHRT_MAX           Maximum (signed) short value  32,767
  20986.  SHRT_MIN           Minimum (signed) short value  -32,767
  20987.  UINT_MAX           Maximum unsigned int value    65,535
  20988.  ULONG_MAX          Maximum unsigned long value   4,294,967,295
  20989.  INT_MAX            Maximum (signed) int value    32,767
  20990.  INT_MIN            Minimum (signed) int value    -32,767
  20991.  LONG_MAX           Maximum (signed) long value   2,147,483,647
  20992.  LONG_MIN           Minimum (signed) long value   -2,147,483,647
  20993.  ────────────────────────────────────────────────────────────────────────────
  20994.  
  20995.  
  20996.  (a)  These values are defined within an #ifndef block as follows:
  20997.  ifndef _CHAR_UNSIGNED         #define CHAR_MAX      127         #define
  20998.  CHAR_MIN    (-127)         #else         #define CHAR_MAX      255
  20999.  #define CHAR_MIN      0         #endif
  21000.  
  21001.  
  21002.  
  21003.  Numerical Values Defined in FLOAT.H
  21004.  
  21005. ╓┌──────────────────┌───────────────────────────┌────────────────────────────
  21006.  Manifest Constant  Description                 Value
  21007.  ─────────────────────────────────────────────────────────────────────────────
  21008.  DBL_DIG            Number of decimal digits    15
  21009.                     of
  21010.                     precision
  21011.  
  21012.  DBL_EPSILON        Smallest value such that    2.2204460492503131e-016
  21013.                     1.0+DBL_EPSILON != 1.0
  21014.  
  21015.  DBL_MANT_DIG       Number of bits in mantissa  53
  21016.  
  21017.  DBL_MAX            Maximum value               1.7976931348623158e+308
  21018.  
  21019.  DBL_MAX_10_EXP     Maximum decimal exponent    308
  21020.  
  21021.  DBL_MAX_EXP        Maximum binary exponent     1,024
  21022.  
  21023.  Manifest Constant  Description                 Value
  21024.  ─────────────────────────────────────────────────────────────────────────────
  21025. 
  21026.  DBL_MIN            Minimum positive value      2.2250738585072014e-308
  21027.  
  21028.  DBL_MIN_10_EXP     Minimum decimal exponent    307
  21029.  
  21030.  DBL_MIN_EXP        Minimum binary exponent     -1,021
  21031.  
  21032.  FLT_DIG            Number of decimal digits    7
  21033.                     of precision
  21034.  
  21035.  FLT_EPSILON        Smallest value such that    1.192092896e-07F
  21036.                     1.0+FLT_EPSILON != 1.0
  21037.  
  21038.  FLT_MANT_DIG       Number of bits in mantissa  24
  21039.  
  21040.  FLT_MAX            Maximum value               3.402823466e+38F
  21041.  
  21042.  FLT_MAX_10_EX      Maximum decimal exponent    38
  21043.  
  21044.  Manifest Constant  Description                 Value
  21045.  ─────────────────────────────────────────────────────────────────────────────
  21046. 
  21047.  FLT_MAX_EXP        Maximum binary exponent     128
  21048.  
  21049.  FLT_MIN            Minimum positive value      1.175494351e-38F
  21050.  
  21051.  FLT_MIN_10_EXP     Minimum decimal exponent    -37
  21052.  
  21053.  FLT_MIN_EXP        Minimum binary exponent     -125
  21054.  
  21055.  LDBL_DIG           Number of decimal digits    19
  21056.                     of
  21057.                     precision
  21058.  
  21059.  LDBL_EPSILON       Smallest value such that    5.4210108624275221706e-020
  21060.                     1.0+LDBL_EPSILON != 1.0
  21061.  
  21062.  LDBL_MANT_DIG      Number of bits in mantissa  64
  21063.  
  21064.  LDBL_MAX           Maximum value               1.189731495357231765e+4932L
  21065.  Manifest Constant  Description                 Value
  21066.  ─────────────────────────────────────────────────────────────────────────────
  21067. LDBL_MAX           Maximum value               1.189731495357231765e+4932L
  21068.  
  21069.  LDBL_MAX_10_EXP    Maximum decimal exponent    4,932
  21070.  
  21071.  LDBL_MAX_EXP       Maximum binary exponent     16,384
  21072.  
  21073.  LDBL_MIN           Minimum positive value      3.3621031431120935063e-4932L
  21074.  
  21075.  LDBL_MIN_10_EXP    Minimum decimal exponent    -4,931
  21076.  
  21077.  LDBL_MIN_EXP       Minimum binary exponent     -16,381
  21078.  
  21079.  ─────────────────────────────────────────────────────────────────────────────
  21080.  
  21081.