Skip to content

Instantly share code, notes, and snippets.

@ammarfaizi2
Created July 14, 2018 11:32
Show Gist options
  • Save ammarfaizi2/f7fe365236fa3aba057cec1f519dfbba to your computer and use it in GitHub Desktop.
Save ammarfaizi2/f7fe365236fa3aba057cec1f519dfbba to your computer and use it in GitHub Desktop.
#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