Příklad
string s = "This is a string"; char c = 'a'; int pos = strrchr(s, c); if (pos >= 0) printf("The character %c is at position %d\n", c, pos); else printf("The character was not found\n");
OBSAH | Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH |