mirror of
https://github.com/devproje/devproje.git
synced 2025-04-22 07:09:53 +09:00
feat: include 'stdlib.h' and 'string.h'
This commit is contained in:
parent
53d3b48289
commit
89c1b590a5
1 changed files with 3 additions and 1 deletions
4
main.c
4
main.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue