Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > fill in array

Reply
Thread Tools

fill in array

 
 
cmk128@hotmail.com
Guest
Posts: n/a
 
      01-04-2008
hi
may i know which c function can fill a byte into an array?
thanks
from Peter ()
 
Reply With Quote
 
 
 
 
user923005
Guest
Posts: n/a
 
      01-04-2008
On Jan 4, 1:10*am, cmk...@hotmail.com wrote:
> hi
> * may i know which c function can fill a byte into an array?


Look up memset() in your C book.
Note that this may not do what you think it should if the data type is
not a character type.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
efficiently create and fill array.array from C code? Thomas Jollans Python 5 06-14-2010 09:39 PM
std::fill()-ing a volatile array (via pointers) Gennaro Prota C++ 1 07-17-2008 06:05 PM
The fastest way to fill 2D dynamic array with zeros romayankin@gmail.com C++ 14 02-26-2006 05:11 AM
fill % of an array Gaz Java 6 04-22-2005 11:08 PM
nullreferenceexception when trying to fill an array of strings Fabio Papa ASP .Net 1 09-24-2003 08:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57