Date: Thu, 31 May 2001 16:56:15 +0200 From: "Sansonetti Laurent" <lorenzo@linuxbe.org> To: <freebsd-questions@FreeBSD.ORG> Subject: Re: what's wrong with this macro? Message-ID: <001c01c0e9e1$d78e1420$0201a8c0@teledisnet.be> References: <20010531143315.A83651@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, I've build this on FreeBSD 4.2-RELEASE with gcc : ----------------------------------------------------- pinux@arrakis ~/Inpres> cat test.c #include <stdio.h> #define COPY_BLOCK(target, source) { \ (target)[0] = (source)[0]; \ (target)[1] = (source)[1]; \ (target)[2] = (source)[2]; \ (target)[3] = (source)[3]; \ } /* COPY_BLOCK */ int main(void) { char plok[]={"1111"},gruik[]={"2222"}; printf("plok: %s && gruik: %s\n",plok,gruik); COPY_BLOCK(plok,gruik); printf("plok: %s && gruik: %s\n",plok,gruik); return (0); } pinux@arrakis ~/Inpres> cc test.c -o test && ./test plok: 1111 && gruik: 2222 plok: 2222 && gruik: 2222 ----------------------------------------------------- I hope this will help you... -- Sansonetti Laurent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c0e9e1$d78e1420$0201a8c0>