C Programming help .....
Roger Oberholtzer
roger
Tue Jan 25 10:50:20 PST 2005
On Tue, 2005-01-25 at 16:43, Roger Oberholtzer wrote:
Sorry, but the last two parameters to memset are the other way around.
Put the calue to set the memory to second, and the amount to set last.
> memset(&A_TEST_MENU, sizeof(struct _extended_menu), 0);
>
> The sizeof() part can also be a variable name if it is a constant size,
> like:
>
> memset(&A_ARRAY_MENU, sizeof(A_ARRAY_MENU), 0);
>
> >
> > Thanks ...
> +????????????????????????????????????????????????????????+??????????????????????????????????????????????????????????????+
> ?? Roger Oberholtzer ?? E-mail: roger at opq.se ??
> ?? OPQ Systems AB ?? WWW: http://www.opq.se/ ??
> ?? Nybrogatan 66 nb ?? Phone: Int + 46 8 314223 ??
> ?? 114 41 Stockholm ?? Mobile: Int + 46 733 621657 ??
> ?? Sweden ?? Fax: Int + 46 8 314223 ??
> +????????????????????????????????????????????????????????+??????????????????????????????????????????????????????????????+
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer ? E-mail: roger at opq.se ?
? OPQ Systems AB ? WWW: http://www.opq.se/ ?
? Nybrogatan 66 nb ? Phone: Int + 46 8 314223 ?
? 114 41 Stockholm ? Mobile: Int + 46 733 621657 ?
? Sweden ? Fax: Int + 46 8 314223 ?
+????????????????????????????+???????????????????????????????+
More information about the Linux-users
mailing list