When using the dirent.h package, i am trying to manipulate the d_name char array but getting errors every time.
Does anyone know how to successfully manipulate the d_name char array as if it were...
Type: Posts; User: srm2888
When using the dirent.h package, i am trying to manipulate the d_name char array but getting errors every time.
Does anyone know how to successfully manipulate the d_name char array as if it were...
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int copyfile(char *fromfile, char *tofile)
{
FILE *ifp, *ofp;
How do i compile it? I wonder if i should just output cc -c struct->dname or something.
Ok, I figured out how to search the local directory or any directory for that matter.
Mainly using <dirent.h>,
I can't exactly figure out how to catch a file, like one that says (8.c) at the end...
USing a linux OS, which woud be the best way to look in a directory and then once i find code to compiling it.
Mainly compiing and searching the directory for a certain file (*.c). What two...