Skip to content

Instantly share code, notes, and snippets.

@NunoLava1998
Created February 12, 2017 17:45
Show Gist options
  • Save NunoLava1998/28c3243af9119d5191c2ea482b20fdb1 to your computer and use it in GitHub Desktop.
Save NunoLava1998/28c3243af9119d5191c2ea482b20fdb1 to your computer and use it in GitHub Desktop.
if (strcmp(echo_check_char, "echo ") == 0) {
size_t size = strlen(com) - strlen(echo_check_char);
char *value[size];
*value = (char *)zero_string((const char*)value[size]);
for (size_t i = strlen(echo_check_char); i < strlen(com); i++) {
*value[i] = com[i];
}
writes("\n", 0, 15);
writes((const char*)value, 0, 15);
writes("\n", 0, 15);
com = zero_string(com);
writes(">", 0, 15);
return com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment