Improve company productivity with a Business Account.Sign Up
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
void getFiles(char *address)
printf(address ); // this line is showing strange characters
HANDLE hFind = INVALID_HANDLE_VALUE;
DirSpec = (LPSTR) malloc (BUFSIZE);
// Check for command-line parameter; otherwise, print usage.
if(argc != 2)
printf("Usage: Test <dir>\n");
// Check that the input is not larger than allowed.
StringCbLength(argv, BUFSIZE, &length_of_arg);
if (length_of_arg > (BUFSIZE - 2))
printf("Input directory is too large.\n");
Open in new window
int main(int argc, char *argv)
directory_path = (char*) malloc(strlen(argv)+4);
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!