Texas Instruments TMS320C2x User Manual page 209

Optimizing c compiler digital signal processor
Hide thumbs Also See for TMS320C2x:
Table of Contents

Advertisement

strerror
strerror
Syntax
Defined in
Description
strftime
Syntax
Defined in
Description
7-50
String Error
#include <string.h>
char *strerror(int errno );
strerror.c in rts.src
The strerror function returns the string "string error". This function is supplied
to provide ANSI compatibility.
Format Time
#include <time.h>
size_t *strftime(char *out, size_t maxsize, const char *format,
const struct tm *time );
strftime.c in rts.src
The strftime function formats a time (pointed to by time) according to a format
string and returns the formatted result in the string out. Up to maxsize charac-
ters can be written to out. The format parameter is a string of characters that
tells the strftime function how to format the time; the following list shows the
valid characters and describes what each character expands to.
%a
The abbreviated weekday name (Mon, Tue, . . . )
%A
The full weekday name
%b
The abbreviated month name (Jan, Feb, . . . )
%B
The locale's full month name
%c
The date and time representation
%d
The day of the month as a decimal number (0−31)
%H
The hour (24-hour clock) as a decimal number (00−23)
%I
The hour (12-hour clock) as a decimal number (01−12)
%j
The day of the year as a decimal number (001−366)
%m
The month as a decimal number (01−12)
%M
The minute as a decimal number (00−59)
%p
The locale's equivalent of either A.M. or P.M.
%S
The second as a decimal number (00−50)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C2x and is the answer not in the manual?

This manual is also suitable for:

Tms320c2xxTms320c5x

Table of Contents