Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> fillchar fill memory with given value pp 136</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILLCHAR               Fill Memory With Given Value                  pp 136

 Syntax:  FillChar (Var1, Count, Value) ;

 Type:    N/A

 Form:    Procedure

 Purpose: Fill a range of memory with a given value.

 Notes:   Var1 is the starting address of any type variable in memory.
          Count is the number of bytes to fill with Value.
 ----------------------------------------------------------------------------


 Usage:
       VAR
          Var1  : String [80]                  ;   { Any type of variable }
          Count : Integer                      ;   { Number fill bytes    }
          Value : Byte                         ;   { Value of fill byte   }

       BEGIN
          FillChar (Var1, Count, Value)        ;   { Execute the fill     }
          FillChar (Var1, SizeOf(Var1), Value) ;   { Can't overflow Var1  }
       END.

See Also: Move SizeOf

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson