feat: include 'stdlib.h' and 'string.h'

This commit is contained in:
WH64 2022-07-24 23:22:44 +09:00
parent 53d3b48289
commit 89c1b590a5

4
main.c
View file

@ -1,4 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_STRING_SIZE 50
@ -12,7 +14,7 @@ struct person {
int main(int argc, char **argv) {
struct person *project = malloc(sizeof(struct person));
strcpy(project->name, "Project_TL");
strcpy(project->job, "Student");
strcpy(project->job, "Student, Backend Developer");
strcpy(project->email, "me@projecttl.net");
project->age = 18;