![]() |
| ||
| *strcpy and linked list Hey! I'm looking for some help on what I'm doing wrong as I'm new to C#. I'd really like it if you can explain why my code isn't working and then offer some help on how to fix it without "making it easy" for me ;o) I have to understand what's happening :oP hehe... On to the problem: I have a linked list containing pointers to lines read from a file. What I would like to do is copy these lines into a char. Can I use *strcpy for this? The way I use *strcpy now isn't working; I'm not getting the entire text copied. Maybe the error isn't the strcpy but some other part of my code? Here's the code I guess is relevant: struct lenket{int main(int argc, char **argv) char *teksten = NULL; All help is appreciated! :o) |
| ||
| Re: *strcpy and linked list Well, the code you just gave is not C# ;). It's C/C++... |
| All times are GMT -4. The time now is 9:20 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC