Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: vonzul
Forum: C Dec 5th, 2007
Replies: 8
Views: 1,425
Posted By vonzul
Thank you very much! That was the problem!
Forum: C Dec 4th, 2007
Replies: 8
Views: 1,425
Posted By vonzul
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main(void)
{ FILE *fp;
DIR *d;
struct dirent *dir;
Forum: C Dec 4th, 2007
Replies: 8
Views: 1,425
Posted By vonzul
When I tried this, I got two warnings:
1. assignment makes integer from pointer without cast
2. passing arg 1 of 'strcpy' makes pointer from integer without cast



I have it starting at 2...
Forum: C Dec 4th, 2007
Replies: 8
Views: 1,425
Posted By vonzul
I changed line 23 to
filenames = (char *) malloc(sizeof *filenames);

and I changed line 24 to
strcpy(filenames,dir->d_name);

I know that this solves the problem I was having because when I...
Forum: C Dec 4th, 2007
Replies: 8
Views: 1,425
Posted By vonzul
This program should traverse a directory and save the file names into an array so I can manipulate data within the files. The problem is that the program prints the name of the files in the first...
Forum: C Dec 4th, 2007
Replies: 7
Views: 4,055
Posted By vonzul
Could you please explain to me how this is done? I wanted to save some file names into an array so I could manipulate the text in the files, but I can't get past this problem and I have tried to save...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC