|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 2045 (0x7fd)
Names: »strtol.3c«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/strtol.3c«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 74 6f 6c 28 33 63 29 0a 0a 0a 0a ┆ions strtol(3c) ┆ 0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x080…0a0 20 20 73 74 72 74 6f 6c 20 2d 20 63 6f 6e 76 65 72 74 20 73 74 72 69 6e 67 20 74 6f 20 69 6e 74 ┆ strtol - convert string to int┆ 0x0a0…0c0 65 67 65 72 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 ┆eger S S S SY Y Y YN N N NT T T┆ 0x0c0…0e0 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 6f 08 6f ┆ TA A A AX X X X l l l lo o┆ 0x0e0…100 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 73 08 73 08 73 08 73 74 08 74 08 74 08 ┆ o on n n ng g g g s s s st t t ┆ 0x100…120 74 72 08 72 08 72 08 72 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 20 28 08 ┆tr r r rt t t to o o ol l l l ( ┆ 0x120…140 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 ┆( ( (s s s st t t tr r r r, , , ┆ 0x140…160 2c 20 70 08 70 08 70 08 70 74 08 74 08 74 08 74 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 62 ┆, p p p pt t t tr r r r, , , , b┆ 0x160…180 08 62 08 62 08 62 61 08 61 08 61 08 61 73 08 73 08 73 08 73 65 08 65 08 65 08 65 29 08 29 08 29 ┆ b b ba a a as s s se e e e) ) )┆ 0x180…1a0 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 ┆ ) c c c ch h h ha a a ar r┆ 0x1a0…1c0 08 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 ┆ r r * * * *s s s st t t tr r r ┆ 0x1c0…1e0 72 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 ┆r; ; ; ; c c c ch h h ha a ┆ 0x1e0…200 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 2a 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 ┆a ar r r r * * * ** * * *p p p p┆ 0x200…220 74 08 74 08 74 08 74 72 08 72 08 72 08 72 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 ┆t t t tr r r r; ; ; ; i i i┆ 0x220…240 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 62 08 62 08 62 08 62 61 08 61 08 61 08 61 73 ┆ in n n nt t t t b b b ba a a as┆ 0x240…260 08 73 08 73 08 73 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 ┆ s s se e e e; ; ; ; D D D DE E┆ 0x260…280 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 ┆ E ES S S SC C C CR R R RI I I I┆ 0x280…2a0 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 ┆P P P PT T T TI I I IO O O ON N ┆ 0x2a0…2c0 4e 08 4e 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f 08 72 5f 08 74 5f 08 6f 5f 08 6c 20 72 65 74 75 ┆N N _ s_ t_ r_ t_ o_ l retu┆ 0x2c0…2e0 72 6e 73 20 61 73 20 61 20 6c 6f 6e 67 20 69 6e 74 65 67 65 72 20 74 68 65 20 76 61 6c 75 65 20 ┆rns as a long integer the value ┆ 0x2e0…300 72 65 70 72 65 73 65 6e 74 65 64 20 62 79 0a 20 20 20 20 20 74 68 65 20 63 68 61 72 61 63 74 65 ┆represented by the characte┆ 0x300…320 72 20 73 74 72 69 6e 67 20 5f 08 73 5f 08 74 5f 08 72 2e 20 20 54 68 65 20 73 74 72 69 6e 67 20 ┆r string _ s_ t_ r. The string ┆ 0x320…340 69 73 20 73 63 61 6e 6e 65 64 20 75 70 20 74 6f 20 74 68 65 0a 20 20 20 20 20 66 69 72 73 74 20 ┆is scanned up to the first ┆ 0x340…360 63 68 61 72 61 63 74 65 72 20 69 6e 63 6f 6e 73 69 73 74 65 6e 74 20 77 69 74 68 20 74 68 65 20 ┆character inconsistent with the ┆ 0x360…380 62 61 73 65 2e 20 20 4c 65 61 64 69 6e 67 0a 20 20 20 20 20 60 60 77 68 69 74 65 2d 73 70 61 63 ┆base. Leading ``white-spac┆ 0x380…3a0 65 27 27 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 69 67 6e 6f 72 65 64 2e 0a 0a 20 20 20 ┆e'' characters are ignored. ┆ 0x3a0…3c0 20 20 49 66 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 70 5f 08 74 5f 08 72 20 69 73 20 6e ┆ If the value of _ p_ t_ r is n┆ 0x3c0…3e0 6f 74 20 28 63 68 61 72 20 2a 2a 29 4e 55 4c 4c 2c 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 ┆ot (char **)NULL, a pointer to t┆ 0x3e0…400 68 65 0a 20 20 20 20 20 63 68 61 72 61 63 74 65 72 20 74 65 72 6d 69 6e 61 74 69 6e 67 20 74 68 ┆he character terminating th┆ 0x400…420 65 20 73 63 61 6e 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 6e 20 2a 5f 08 70 5f 08 74 5f 08 72 ┆e scan is returned in *_ p_ t_ r┆ 0x420…440 2e 20 20 49 66 20 6e 6f 0a 20 20 20 20 20 69 6e 74 65 67 65 72 20 63 61 6e 20 62 65 20 66 6f 72 ┆. If no integer can be for┆ 0x440…460 6d 65 64 2c 20 2a 5f 08 70 5f 08 74 5f 08 72 20 69 73 20 73 65 74 20 74 6f 20 5f 08 73 5f 08 74 ┆med, *_ p_ t_ r is set to _ s_ t┆ 0x460…480 5f 08 72 2c 20 61 6e 64 20 7a 65 72 6f 20 69 73 0a 20 20 20 20 20 72 65 74 75 72 6e 65 64 2e 0a ┆_ r, and zero is returned. ┆ 0x480…4a0 0a 20 20 20 20 20 49 66 20 5f 08 62 5f 08 61 5f 08 73 5f 08 65 20 69 73 20 70 6f 73 69 74 69 76 ┆ If _ b_ a_ s_ e is positiv┆ 0x4a0…4c0 65 20 28 61 6e 64 20 6e 6f 74 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 33 36 29 2c 20 69 74 20 ┆e (and not greater than 36), it ┆ 0x4c0…4e0 69 73 20 75 73 65 64 20 61 73 0a 20 20 20 20 20 74 68 65 20 62 61 73 65 20 66 6f 72 20 63 6f 6e ┆is used as the base for con┆ 0x4e0…500 76 65 72 73 69 6f 6e 2e 20 20 41 66 74 65 72 20 61 6e 20 6f 70 74 69 6f 6e 61 6c 20 6c 65 61 64 ┆version. After an optional lead┆ 0x500…520 69 6e 67 20 73 69 67 6e 2c 0a 20 20 20 20 20 6c 65 61 64 69 6e 67 20 7a 65 72 6f 73 20 61 72 65 ┆ing sign, leading zeros are┆ 0x520…540 20 69 67 6e 6f 72 65 64 2c 20 61 6e 64 20 60 60 30 78 27 27 20 6f 72 20 60 60 30 58 27 27 20 69 ┆ ignored, and ``0x'' or ``0X'' i┆ 0x540…560 73 20 69 67 6e 6f 72 65 64 0a 20 20 20 20 20 69 66 20 5f 08 62 5f 08 61 5f 08 73 5f 08 65 20 69 ┆s ignored if _ b_ a_ s_ e i┆ 0x560…580 73 20 31 36 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 62 5f 08 61 5f 08 73 5f 08 65 20 69 73 20 7a ┆s 16. If _ b_ a_ s_ e is z┆ 0x580…5a0 65 72 6f 2c 20 74 68 65 20 73 74 72 69 6e 67 20 69 74 73 65 6c 66 20 64 65 74 65 72 6d 69 6e 65 ┆ero, the string itself determine┆ 0x5a0…5c0 73 20 74 68 65 20 62 61 73 65 20 74 68 75 73 3a 0a 20 20 20 20 20 41 66 74 65 72 20 61 6e 20 6f ┆s the base thus: After an o┆ 0x5c0…5e0 70 74 69 6f 6e 61 6c 20 6c 65 61 64 69 6e 67 20 73 69 67 6e 2c 20 61 20 6c 65 61 64 69 6e 67 20 ┆ptional leading sign, a leading ┆ 0x5e0…600 7a 65 72 6f 20 69 6e 64 69 63 61 74 65 73 0a 20 20 20 20 20 6f 63 74 61 6c 20 63 6f 6e 76 65 72 ┆zero indicates octal conver┆ 0x600…620 73 69 6f 6e 2c 20 61 6e 64 20 61 20 6c 65 61 64 69 6e 67 20 60 60 30 78 27 27 20 6f 72 20 60 60 ┆sion, and a leading ``0x'' or ``┆ 0x620…640 30 58 27 27 20 68 65 78 61 64 65 63 69 6d 61 6c 0a 20 20 20 20 20 63 6f 6e 76 65 72 73 69 6f 6e ┆0X'' hexadecimal conversion┆ 0x640…660 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 64 65 63 69 6d 61 6c 20 63 6f 6e 76 65 72 73 69 6f 6e ┆. Otherwise, decimal conversion┆ 0x660…680 20 69 73 20 75 73 65 64 2e 0a 0a 20 20 20 20 20 54 72 75 6e 63 61 74 69 6f 6e 20 66 72 6f 6d 20 ┆ is used. Truncation from ┆ 0x680…6a0 6c 6f 6e 67 20 74 6f 20 69 6e 74 20 63 61 6e 2c 20 6f 66 20 63 6f 75 72 73 65 2c 20 74 61 6b 65 ┆long to int can, of course, take┆ 0x6a0…6c0 20 70 6c 61 63 65 20 75 70 6f 6e 0a 20 20 20 20 20 61 73 73 69 67 6e 6d 65 6e 74 2c 20 6f 72 20 ┆ place upon assignment, or ┆ 0x6c0…6e0 62 79 20 61 6e 20 65 78 70 6c 69 63 69 74 20 63 61 73 74 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 ┆by an explicit cast. S S S SE E┆ 0x6e0…700 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 ┆ E EE E E E A A A AL L L LS S S ┆ 0x700…720 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 ┆SO O O O Library Functions ┆ 0x720…740 28 33 29 3a 20 20 61 74 6f 66 2c 20 73 63 61 6e 66 0a 0a 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 ┆(3): atof, scanf L L L LI I I ┆ 0x740…760 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54 08 54 41 08 41 08 41 08 41 54 08 54 ┆IM M M MI I I IT T T TA A A AT T┆ 0x760…780 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 53 08 53 08 53 08 53 ┆ T TI I I IO O O ON N N NS S S S┆ 0x780…7a0 0a 20 20 20 20 20 4f 76 65 72 66 6c 6f 77 20 63 6f 6e 64 69 74 69 6f 6e 73 20 61 72 65 20 69 67 ┆ Overflow conditions are ig┆ 0x7a0…7c0 6e 6f 72 65 64 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 ┆nored. December 1989 ┆ 0x7c0…7e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 ┆ TX Programmer's ┆ 0x7e0…7fd 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆Reference ┆