Theta/test.c
2019-10-16 14:05:22 +02:00

28 lines
No EOL
600 B
C

//
// Készítette: Toldi Balázs Ádám
// Dátum: 2019. 10. 11..
//
#include "utility.h"
char* webio_getFiletype(char* filename){
char *type = (char*) malloc(10);
char* tmp = strtok(filename,".");
while(tmp != NULL){
type =tmp;
tmp = strtok(NULL,".");
}
return type;
}
int main(void){
char contents[] = "The quick brown fox jumps over the lazy dog";
static unsigned char buffer[33];
md5(contents, buffer);
printf("%s %d\n", buffer,strlen(buffer));
char txt[] = "Hello.world.txt";
printf("%s",webio_getFiletype(txt));
return 0;
}