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


Groups > comp.lang.c > #106361

Re: rand() usage example version 2

From Ike Naar <ike@iceland.freeshell.org>
Newsgroups comp.lang.c
Subject Re: rand() usage example version 2
Date 2017-03-17 17:02 +0000
Organization A noiseless patient Spider
Message-ID <slrn3vfsoco5qo.e2f.ike@iceland.freeshell.org> (permalink)
References <oag18v$40r$1@dont-email.me>

Show all headers | 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