--7iMSBzlTiPOCCT2k
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Feb 10, 2004 at 03:37:00PM -0500, Jeremy Faulkner wrote:
>=20
>=20
> va_start says that the last required variable is "message".
>=20
> You can't use ap because it's not in the list of variables when you=20
> called the function.
ap doesn't represent a parameter, it represents the list. C/C++ have
no way of knowing how many parameters were passed in. The information
in "message" tells the function how many parameters are in the list.
> _log(1, "Log test");
> ^ There's nothing there to be "ap"
>=20
> So it "Segmentation fault (core dumped)"'s
>=20
> _log(1, "Log test", NULL);
If that were true, then
printf("Hello, world!");
could never work.
Marc.
> --=20
> Jeremy Faulkner http://www.gldis.ca
> _______________________________________________
> freebsd-chat@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chat
> To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
--=20
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
--7iMSBzlTiPOCCT2k
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD4DBQFAKWPig1EgpGw750IRArrhAJUZR4qHXkFWwz6GZOXSd/7VXX//AJ9Fk9/K
OwpY/MNzZfh8bXGAKwAyXg==
=aveT
-----END PGP SIGNATURE-----
--7iMSBzlTiPOCCT2k--