1 03/31/83 char_to_numeric_
2
3
4 Entry points in char_to_numeric_:
5 List is generated by the help command
6
7
8 :Entry: char_to_numeric_: 01/31/83 char_to_numeric_
9
10
11 Function: converts a user-supplied string to a numeric type, or
12 signals the conversion condition if it cannot be converted. The
13 attributes of the numeric data created are returned.
14
15
16 Syntax:
17 declare char_to_numeric_ entry ptr fixed bin35 fixed bin35 ptr
18 fixed bin21;
19 call char_to_numeric_ target_ptr enc_type enc_prec source_ptr
20 source_len;
21
22
23 Arguments:
24 target_ptr
25 points to a buffer where the numeric data may be written. No check
26 is made that the buffer is large enough to hold the data. Input
27 enc_type
28 is the encoded type of the data created. Its value is 2*M+P, where
29 M is a standard Multics type code, and P is 1 if the data is packed,
30 or 0 if it is not. P should always be 0. The value of Multics
31 type codes are defined in the Programmer's Reference Manual.
32 Output
33
34
35 enc_prec
36 is the encoded precision of the data created. The format of an
37 encoded precision is given by encoded_precision.incl.pl1. See the
38 description of the assign_ subroutine. Output
39 source_ptr
40 points to the character string to convert to numeric. Input
41 source_len
42 is the number of characters in the input string. Input