Changes

Jump to: navigation, search

UNX511 - 20121 - Project - TeamA

18 bytes added, 15:01, 23 January 2012
Useful Code Snippets
* @note needs to be free()'d after use
*/
char* runCmd(const char* cmd){
FILE* fp;
char* out = NULL;
* @note needs to be free()'d after use
*/
char* concat(const char* a, const char* b){
char* tmp = malloc(snprintf(NULL, 0, "%s %s", a, b) + 1);
sprintf(tmp, "%s %s", a, b);
9
edits

Navigation menu