Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #106361

Re: rand() usage example version 2

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ike Naar <ike@iceland.freeshell.org>
Newsgroups comp.lang.c
Subject Re: rand() usage example version 2
Date Fri, 17 Mar 2017 17:02:51 -0000 (UTC)
Organization A noiseless patient Spider
Lines 9
Message-ID <slrn3vfsoco5qo.e2f.ike@iceland.freeshell.org> (permalink)
References <oag18v$40r$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Date Fri, 17 Mar 2017 17:02:51 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="bcd18c0cda1013ce52f1e211982d4edf"; logging-data="21417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+X2/ZVdgE0BPHPjpFn0yHB"
User-Agent slrn/0.9.9p1 (NetBSD)
Cancel-Lock sha1:3kZ5rL1RXMSuDAJLYQXCzDdSvTI=
Xref csiph.com comp.lang.c:106361

Show key headers only | View raw


On 2017-03-17, MehdiAmini <atorrses@gmail.com> wrote:
>      static void *alloc_ptr = NULL;
>      alloc_ptr = malloc(size);

Why not simply:

    static void *alloc_ptr = malloc(size);

?

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

rand() usage example version 2 MehdiAmini <atorrses@gmail.com> - 2017-03-17 10:28 +0330
  Re: rand() usage example version 2 Ike Naar <ike@iceland.freeshell.org> - 2017-03-17 17:02 +0000
  Re: rand() usage example version 2 Keith Thompson <kst-u@mib.org> - 2017-03-17 11:23 -0700

csiph-web