SHARE
TWEET

Untitled

a guest Jun 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char *correct(char *tekst)
  2. {
  3.   char *begin = tekst;
  4.   for (int i = 0; i < strlen(tekst); i++)
  5.   {
  6.     char c = tekst[i];
  7.     if (c == '1')
  8.     {
  9.       tekst[i] = 'I';
  10.     }
  11.     else if (c == '5')
  12.     {
  13.       tekst[i] = 'S';
  14.     }
  15.     else if (c == '0')
  16.     {
  17.       tekst[i] = 'O';
  18.     }
  19.   }
  20.   return begin;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top