Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - strfilter() eliminate all occurrences of a character from string http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 strfilter()         Eliminate all occurrences of a character from string
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char strfilter extern
   param const char cString, ;
         value byte bChar

 Arguments
   cString is a string to scan.

   bChar is the character to eliminate.

 Return
   A derivative of the input string from which all occurrences of bChar
   are missing.

 Description
   The strfilter() function scans a string for a passed character,
   eliminates all its occurrences, and returns the changed string.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_strfilter
   vardef
      char  cString
   enddef
   cString := "Hexxxllo xxxxworld"
   ? strfilter( cString, asc( "x" ) )  // print "Hello world"
   endproc

   proc main
   Test_strfilter()
   endproc

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