diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/atoi.3 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/atoi.3')
| -rw-r--r-- | static/unix-v10/man3/atoi.3 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/static/unix-v10/man3/atoi.3 b/static/unix-v10/man3/atoi.3 new file mode 100644 index 00000000..9db85352 --- /dev/null +++ b/static/unix-v10/man3/atoi.3 @@ -0,0 +1,43 @@ +.pa 1 +.he 'ATOI (III)'1/15/73'ATOI (III)' +.ti 0 +NAME atoi -- ascii to integer +.sp +.ti 0 +SYNOPSIS jsr r5,atoi; subr +.sp +.ti 0 +DESCRIPTION atoi____ +will convert an ascii stream to a binary +number returned in r1. + +The subroutine subr____ +(supplied by the caller) +is called on r5 for each character of the +ascii stream. +subr____ should return the character in r0. +The first character not used in the conversion +is left in r0. +.sp +The numbers recognized are: an optional minus sign +followed by a string of digits. +.sp +The subroutine subr____ must not disturb any registers. +.sp +.ti 0 +FILES kept in /lib/liba.a +.sp +.ti 0 +SEE ALSO -- +.sp +.ti 0 +DIAGNOSTICS There are none; +the routine charges on regardless of consequences; see BUGS. +.sp +.ti 0 +BUGS It +pays no attention to overflow - you get whatever the machine +instructions mul and div happen to leave in the low order half +- in fact, the carry bit should be set and isn't. +.sp +The routine should accept initial "+" and initial blanks. |
