Created
July 14, 2018 11:32
-
-
Save ammarfaizi2/f7fe365236fa3aba057cec1f519dfbba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
struct icetea_streama { | |
char *file; | |
char *content_type; | |
}; | |
int login_page() | |
{ | |
struct icetea_streama ic; | |
ic.file = malloc(255); | |
strcpy(ic.file, "views/"); | |
strcat(ic.file, "login"); | |
strcat(ic.file, ".ice"); | |
printf("%s\n", ic.file); | |
return 0; | |
} | |
int main () { | |
login_page(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment