Description:
The integer value is
encoded into a concise string which is then copied into the given string beginning at position
"
iposn1"
.
"
iposn"
is returned updated to indicate the end position of the encoded number within "
string"
. This
is a combination of chrItoc and chrPutc.
Invocation
void chrPuti( int ivalue, char
string, size_t
string_length, size_t iposn
)
Parameters :
ivalue
The value to be encoded into the string.
string
Pointer to a null
terminated string holding the string into which "
ivalue"
is to be copied.
string_length
The declared
length of the supplied ’
string’
array. This should include room for the terminating null.
iposn
The zero-based position pointer within "
string"
.
Copyright © 2018 East Asian Observatory