Texas Instruments TMS34010 Reference Manual page 88

C compiler
Hide thumbs Also See for TMS34010:
Table of Contents

Advertisement

Runtime-Support Functions - Summary
String Functions (continued)
Header File:
string.h
Function and Syntax
Description
char
*strrchr(s ,c)
Finds the last occurrence of character in s
char *s;
int
c;
size-t
strspn(sl, s2)
Returns the length of the initial segment of sl, which is
char
*sl, *s2;
entirely made up of characters from s2
char
*strstr(sl, s2)
Finds the first occurrence of a string in another string
char
*sl, *s2;
char
*strtok(sl, s2)
Breaks a string into a series of tokens, each delimited by a
char
*sl, *s2;
character from a second string
Time Functions
Header File:
time. h
Function and Syntax
Description
char
*asctime(timeptr)
Converts a time to a string
struct tm
*timeptr;
c1ock_t
clock( )
Determines the processor time used
char
*ctime(timeptr)
Converts calendar time to local time
struct tm
*timeptr;
double
difftime(time1,timeO)
Returns the difference between two calendar times
time_t
time1, timO;
struct tm
*gmtime(timer)
Converts calendar time Greenwich Mean Time
time-t
*timer;
struct tm
*localtime(timer)
Converts calendar time to local time
time-t
*timer;
time-t mktime(timeptr)
Converts local time to calendar time
struct tm
*timeptr;
size-t
strftime(s, maxsize,
Formats a time into a character string
format, timeptr)
char
*s, *format;
size-t
maxsize;
struct tm *timeptr;
time_t time(timer)
Returns the current calendar time
time-t
*timer;
6-13

Advertisement

Table of Contents
loading

Table of Contents