Need help with a C issue
From: Fredrik Lindstrom (invalid_at_invalid.com)
Date: 10/02/03
- Next message: Colossus: "C or C++ multithreaded server code"
- Previous message: Piotr: "ctags and C++"
- Next in thread: Josef Möllers: "Re: Need help with a C issue"
- Reply: Josef Möllers: "Re: Need help with a C issue"
- Reply: Måns Rullgård: "Re: Need help with a C issue"
- Reply: Floyd Davidson: "Re: Need help with a C issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 2 Oct 2003 15:20:58 +0200
Hi folks!
int firstValue, secondValue;
void *data[][2]{
{&firstValue, &"0"},
{&secondValue, &"0"}};
Suppose I want to change the value data[0][1] to "1" and I can´t figure out
on how to do this.
I would suggest that this would work but it doesent:
memcpy((char *)data[0][1], "1", sizeof("1"));
Can someone please explain why this does not work.
Regards
Fredrik ( fredrik_igelkott@telia.com (remove the underscore and replace with
a dot))
----== Posted via Usenet.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.Usenet.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
- Next message: Colossus: "C or C++ multithreaded server code"
- Previous message: Piotr: "ctags and C++"
- Next in thread: Josef Möllers: "Re: Need help with a C issue"
- Reply: Josef Möllers: "Re: Need help with a C issue"
- Reply: Måns Rullgård: "Re: Need help with a C issue"
- Reply: Floyd Davidson: "Re: Need help with a C issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]