4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
12 lines
231 B
C
12 lines
231 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
char* string = (char*) calloc(20, sizeof(char));
|
|
strcpy(string, "tempXXXXXX");
|
|
mktemp(string);
|
|
printf("%s\n",string);
|
|
free(string);
|
|
}
|