Advertisement
DanGT

String Scan

Dec 6th, 2013
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. stock sscan(string[], params[], {Float,_}:...)
  2. {
  3.     if(string[0x0] == 0x0)
  4.         return -0x1;
  5.        
  6.     new strpos = -0x1;
  7.     while(string[++strpos] != ' ');
  8.    
  9.     new ParamsPOS = 0x2, FormatPOS;
  10.     if(ParamsPOS < numargs() && string[strpos])
  11.     {
  12.         switch(params[++FormatPOS])
  13.         {
  14.             case '\0':
  15.             return 0x0;
  16.                
  17.         }
  18.     }
  19.     return true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement