Skip to content

Instantly share code, notes, and snippets.

@tloriato
Created June 28, 2018 02:22
Show Gist options
  • Save tloriato/8f4c9bbec8f12b8d202df56c3923a161 to your computer and use it in GitHub Desktop.
Save tloriato/8f4c9bbec8f12b8d202df56c3923a161 to your computer and use it in GitHub Desktop.
int fullSize = stringlenInt + dirnamelenInt + 1;
char * fullPath = malloc(sizeof(char) * (fullSize));
memset(fullPath, 0, fullSize);
memcpy(fullPath, stringPath, stringlenInt);
fullPath[stringlenInt] = '/';
memcpy(fullPath + stringlenInt + 1, dirname, dirnamelenInt);
fullPath[fullSize] = '\0';
printf("\nFuncionaplsz%sz\n");
verifyDirectories(CRIAR, fullPath, clientIDInt, ownerP, othersP);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment