! Aware > default selections > Text Strings > Text String Conversions > String-Integer-String conversions >

String-Integer-String conversions

Converting strings to and from integers. ascii to long, long to ascii, etc.
Subsets on this page: - #Apps & Utilities - #Q&A - #Libs & Functions -
- #Personalize -
     icon
Search ! Aware:



     Home
  By TONY
  By MARK
  By JERRY
  By ANN
  By ERICA

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...



Questions and Answers: Showing

How can I implement a variable field width with printf? []

At comp.lang.c FAQ

How can I print numbers with commas separating the thousands? []

At comp.lang.c FAQ

Why doesn't the call scanf("%d", i) work? []

At comp.lang.c FAQ

How can I specify a variable width in a scanf format string? []

At comp.lang.c FAQ

When I read numbers from the keyboard with scanf "%d\n", it seems to hang until I type one extra line of input. []

At comp.lang.c FAQ

I'm reading a number with scanf %d and then a string with gets(), but the compiler seems to be skipping the call to gets()! []

At comp.lang.c FAQ

I'm re-prompting the user if scanf fails, but sometimes it seems to go into an infinite loop. []

At comp.lang.c FAQ

Why does everyone say not to use scanf? What should I use instead? []

At comp.lang.c FAQ

How can I tell how much destination buffer space I'll need for an arbitrary sprintf call? How can I avoid overflowing the destination buffer with sprintf? []

At comp.lang.c FAQ

Why does errno contain ENOTTY after a call to printf? []

At comp.lang.c FAQ

How can I convert numbers to strings? []

At comp.lang.c FAQ

I heard that you have to #include <stdio.h> before calling printf. Why? []

At comp.lang.c FAQ

Why don't function prototypes guard against mismatches in printf's arguments? []

At comp.lang.c FAQ

How can I write a function that takes a format string and a variable number of arguments, like printf, and passes them to printf to do most of the work? []

At comp.lang.c FAQ

How can I write a function analogous to scanf, that calls scanf to do most of the work? []

At comp.lang.c FAQ

Questions and Answers

Others not displayed here
Full List


Applications and Utilities: Showing

printf - A printf program {oss}

At comp.sources.unix at UUNET
Printf(1), for shell scripts (At comp.sources.unix at UUNET)

number - Arabic numerals to multi-lingual natural language {oss}

At comp.sources.unix at UUNET

Libraries and Components: Showing

a64l l64a (3) - convert between 32-bit integer and radix-64 ASCII string {oss}

Source code: OpenBSD

atoi (3) - convert ASCII string to integer {oss}

Man pages: FreeBSD RedHat NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

atol (3) - convert ASCII string to long integer {oss}

Man pages: FreeBSD RedHat NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

strtol strtoq (3) - convert string value to a long or quad_t integer {oss}

Man pages: FreeBSD RedHat Solaris NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

strtoul strtouq (3) - convert a string to an unsigned long or uquad_t {oss}

Man pages: FreeBSD RedHat Solaris NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

scanf fscanf sscanf vscanf vsscanf vfscanf (3) - input format conversion {oss}

Man pages: FreeBSD RedHat Solaris NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

printf fprintf sprintf snprintf asprintf asnprintf vprintf vfprintf vsprintf vsnprintf vasprintf vansprintf (3) - formatted output conversion {oss}

Man pages: FreeBSD RedHat Solaris NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

strerror (3) - get error message string {oss}

Man pages: RedHat NetBSD
Source code: OpenBSD FreeBSD
[ANSI C X3.159-1989]

strsignal (3) - get signal description string {oss}

Man pages: RedHat NetBSD
Source code: OpenBSD

trio-1.3 - A fully matured and stable set of printf and string functions

At FreeBSD Ports

p5-String-Scanf-1.4 - Emulates the sscanf() of the C stdio library

At FreeBSD Ports

L2Roman.C - Convert long integers to roman numerals {oss}

At snippets.org

Roman2L.C - Convert roman numerals to long integers {oss}

At snippets.org

Bitstrng.C - Print binary formatted strings {oss}

At snippets.org

Bstr_I.C - Convert binary string to int {oss}

At snippets.org

Rdxcnvrt.C - Convert between number bases {oss}

At snippets.org

Numcnvrt.H - Header for SNIPPETS numerical <=> string conversions {oss}

At snippets.org

Bascnvrt.C - Convert radix of a numeric string {oss}

At snippets.org

Commafmt.C - Format long integers using commas {oss}

At snippets.org

Fmtmoney.C - Format US dollar amounts into text strings {oss}

At snippets.org

Hexorint.C - Auto-convert hex or decimal strings {oss}

At snippets.org

Hstr_I.C - Convert hex string to int {oss}

At snippets.org

Ltoa.C - Convert long to a string {oss}

At snippets.org

Ltostr.C - A safer version of ltoa() {oss}

At snippets.org

Ord_Text.C - Format ordinal numbers in English {oss}

At snippets.org

number - Arabic numerals to multi-lingual natural language {oss}

At comp.sources.unix at ISC

Roman - Convert from Arabic (normal) numbers to Roman numbers and back. [Perl] {oss}

At CPAN

String::Scanf - Emulate C's sscanf() function, which extracts and assigns values from a string. [Perl] {oss}

At CPAN

Libraries and Functions

Others not displayed here
Full List

Related Subjects (default selections)

(The following links to subjects at this site retain your personalized selections.)

Up to Text Strings - Gateway topic to character and string processing routines. NUL Terminated String processing String conversions,et al. ascii to long, long to

(There may be additional related subject pages listed here)

Personalized Selections
Platform:
Unix/BSD/Linux.
Prog.Language:
C/C++.
Perl.
PHP.
License:
Commercial.
Open-source.
Maturity:
Stable.
Tip: To exclude choices, select all others in same column
Pre-Selections

Use our system: Bring Rapid Knowledge Transfer and Awareness to your company website!



Rapid-Links: Search | About | Comments | Submit Path: RocketAware > Text Strings > Text String Conversions > String-Integer-String conversions >
RocketAware.com is a service of Mib Software
Copyright 2002, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments