Is there the same function in c++ as FILLCHAR in Pascal?
How to fill the array will special value quickly?
Is there the same function in c++ as FILLCHAR in Pascal?
Moderator: Board moderators
Is there the same function in c++ as FILLCHAR in Pascal?
Life is beautifull !!!
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
If you want to initiate all bytes in char array the same character you could use memset() function 
Best regards
DM

Code: Select all
memset(array,fill_this_character,sizeof(array));
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
Born from ashes - restarting counter of problems (800+ solved problems)
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact: