Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 02:01:57 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        ru@FreeBSD.org, freebsd-doc@FreeBSD.org
Subject:   Re: docs/28371: malloc(2) man page correction
Message-ID:  <20010628020157.F83829@strontium.shef.vinosystems.com>
In-Reply-To: <94299.993675446@critter>
References:  <20010627204515.D49799@strontium.shef.vinosystems.com> <94299.993675446@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote:

> But I want to be able to say:
> 
> 
> main(...)
> {
> 	char mymallocoptions[10];
> 
> 	sprintf(mymallocoptions, "%c%c", something, other);
> 	malloc_options = mymallocoptions;
> }

Making malloc_options 'const char *' wouldn't prevent this as far as
I can see (though do correct me if I'm wrong), it would only prevent
something like

	sprintf(malloc_options, "%c%c", something, other);

-- 
Ben Smithurst / ben@FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010628020157.F83829>