NO

Author Topic: strset  (Read 2559 times)

Offline Robert

  • Member
  • *
  • Posts: 193
strset
« on: October 04, 2007, 10:47:58 am »
Hi Pelle:

I would like to request that the strset and strnset functions be added to the Pelle's C compiler.

Thank you

Robert Wishlaw

Diddl

  • Guest
Re: strset
« Reply #1 on: October 04, 2007, 01:57:24 pm »
in standard C-99 there is no strset() and no strnset(). use memset() instead.

strset() would make no sense. strxxx functions always works with \0 terminated strings. memset() fills a memory region with a byte value. which meaning should strset() do?

Offline Robert

  • Member
  • *
  • Posts: 193
Re: strset
« Reply #2 on: October 06, 2007, 06:43:55 am »
in standard C-99 there is no strset() and no strnset(). use memset() instead.

Hey Diddl:

Thank you for the suggestion,  memset() is good. I withdraw my request.

Robert Wishlaw