Go to the source code of this file.
◆ mkstemps()
Definition at line 73 of file mkstemps.c.
76{
77 static const char letters[]
78 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
80#ifdef HAVE_GETTIMEOFDAY
82#endif
83 char *XXXXXX;
86
88
89 if ((
int)
len < 6 + suffix_len
90 ||
strncmp (&
template[
len - 6 - suffix_len],
"XXXXXX", 6))
91 {
92 printf(
"wrong parameter\n");
93 return -1;
94 }
95
96 XXXXXX = &
template[
len - 6 - suffix_len];
97
98#ifdef HAVE_GETTIMEOFDAY
99
102#else
104#endif
105
107 {
110
111
112 XXXXXX[0] = letters[
v % 62];
114 XXXXXX[1] = letters[
v % 62];
116 XXXXXX[2] = letters[
v % 62];
118 XXXXXX[3] = letters[
v % 62];
120 XXXXXX[4] = letters[
v % 62];
122 XXXXXX[5] = letters[
v % 62];
123
124#ifdef VMS
126#else
128#endif
130
132
133
134
135
137 }
138
139
140 template[0] = '\0';
141 return -1;
142}
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
#define gettimeofday(tv, tz)
GLuint GLuint GLsizei count
unsigned long gcc_uint64_t