EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1034 background imageLoading...
Page #1034 background image
992
Appendix A: System Routines — Strings
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
strcpy
Declaration:
char *
strcpy
(char *
s1
, const char *
s2
)
Category(ies):
Strings
Description:
Copies the string pointed to by
s2
to the buffer pointed to by
s1
. If the
objects pointed to by
s1
and
s2
overlap in memory, the behavior is
undefined.
Inputs:
s1
Buffer to copy to.
s2
String to be copied into
s1.
Outputs:
Returns the value of
s1.
Assumptions:
s1
points to a buffer large enough to hold
s2.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: strncpy
,
memcpy
,
memmove
Example:
void gr_seq_axes_lbl( SBYTE ax, char buf[] )
/* Create requested string in buf for sequence axes labels.
input: ax = -1 = n
= 0 = u
> 0 = u1 - u99
buf = buffer for string
*/
{
if( ax < 0 )
strcpy( buf, "n" ); /* n is on this axis */
else
{ /* want u or u1-u99 */
strcpy( buf, "u" );
if( ax )
sprintf( buf + 1, "%d", (BYTE)ax ); /* need to add 1-99 to string */
}
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals