Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Created October 21, 2016 09:47
Show Gist options
  • Save yvan-sraka/cf1f8bb69804c7939a670b4a2a7f0c67 to your computer and use it in GitHub Desktop.
Save yvan-sraka/cf1f8bb69804c7939a670b4a2a7f0c67 to your computer and use it in GitHub Desktop.
#include "unistd.h"
#include "stdlib.h"
#include "stdio.h"
int main(void) {
char* key = malloc(sizeof(char) * 20);
key = "cookie";
for (char i = 0; i < 20; ++i) {
printf("[%c]", key[i]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment