[BACK]Return to dc.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / dc

Diff for /src/usr.bin/dc/dc.1 between version 1.14 and 1.15

version 1.14, 2003/11/04 08:10:06 version 1.15, 2003/11/06 19:48:55
Line 134 
Line 134 
 x y / x y %  x y / x y %
 .Ed  .Ed
 The division and modulus operator is a non-portable extension.  The division and modulus operator is a non-portable extension.
   .It Ic a
   Pop the top value from the stack.
   If that value is a number, compute the integer part of the number modulo 256.
   If the result is zero, push an empty string.
   Otherwise push a one character string by interpreting the computed value
   as an
   .Tn ASCII
   character.
   .Pp
   If the top value is a string, push a string containing the first character
   of the original string.
   If the original string is empty, an empty string is pushed back.
   The
   .Ic a
   operator is a non-portable extension.
 .It Ic c  .It Ic c
 All values on the stack are popped.  All values on the stack are popped.
 .It Ic d  .It Ic d
Line 147 
Line 162 
 .It Ic I  .It Ic I
 Pushes the input base on the top of the stack.  Pushes the input base on the top of the stack.
 .It Ic J  .It Ic J
 Pop the top value of the stack.  Pop the top value from the stack.
 The recursion level is popped by that value and, following that,  The recursion level is popped by that value and, following that,
 the input is skipped until the first occurrence of the  the input is skipped until the first occurrence of the
 .Ic M  .Ic M
 operator.  operator.
 The  The
 .Ic J  .Ic J
 operator is a non-portable extensions, used by the  operator is a non-portable extension, used by the
 .Xr bc 1  .Xr bc 1
 command.  command.
 .It Ic K  .It Ic K
Line 190 
Line 205 
 operator is a non-portable extensions, used by the  operator is a non-portable extensions, used by the
 .Xr bc 1  .Xr bc 1
 command.  command.
   .It Ic n
   The top value on the stack is popped and printed without a newline.
   This is a non-portable extension.
 .It Ic O  .It Ic O
 Pushes the output base on the top of the stack.  Pushes the output base on the top of the stack.
 .It Ic o  .It Ic o
Line 327 
Line 345 
 is written in an array that is later popped, to reveal the array that  is written in an array that is later popped, to reveal the array that
 stored  stored
 .Ql first .  .Ql first .
   .It Ic #
   Skip the rest of the line.
   This is a non-portable extension.
 .El  .El
 .Sh EXAMPLES  .Sh EXAMPLES
 An example which prints the first ten values of  An example which prints the first ten values of

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15