November 12th, 2010, 10:03 PM
I'm using header files:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
I thought strdub was part of string.h.
November 12th, 2010, 07:55 PM
Thanks, so I need to use strcpy instead? I tried it replacing:
record[numwords] -> data = (char *)strdup(newword);
with
strcpy(record[numwords] -> data, newword);
but now that strcpy...
November 12th, 2010, 06:59 PM
Thank you. Simple fix: size of(Wordrec *)
Also on a side note: what exactly does "warning: implicit declaration of function ‘strdup’ " mean?
From what I've been able to find that warning says...
November 12th, 2010, 06:18 PM
This is a C program, but if I need sorting for C++ I'll keep that in mind.
November 12th, 2010, 05:59 PM
I keep trying different ways of writing a compare function but when I run the program I keep getting a seg fault at the qsort function call.
I have:
typedef struct
{
int count;
char...
December 10th, 2007, 12:07 PM
I'm trying to compile the app to a screensaver file to try out on my comp. and so far it isn't working properly.
December 9th, 2007, 11:17 PM
Pardon ME but what are you talking about?
December 9th, 2007, 09:02 PM
I've created a DirectX7 DirectDraw screensaver that displays a series of images (movie like). I've got everything to work fine in VB but when I go to compile it to a *.scr file it won't let me...