[elektro] String egyeztetés?
zulu
zulu at gmail.hu
Sat Jan 28 13:37:57 CET 2017
2017-01-28 09:26 keltezéssel, Karoly Kovacs írta:
> Rosszul aludtam, takonnyal van tele a búrám, nem jár az agyam.
>
> Keresek egy egyszerű megoldást, algoritmust stringek egyeztetésére.
> Legjobb, ha példát írok: "10f4" része-e pl. az "abc10f4xyx"-nek?
> Vagy pl: "10f4" része-e pl. az "abc10f4"-nek?
> Ugyanígy: "10f4" része-e pl. az "10f4xyx"-nek?
#include <string.h>
char *strstr(const char *haystack, const char *needle);
DESCRIPTION
The strstr() function finds the first occurrence of the substring needle in the string haystack. The terminating null
bytes
('\0') are not compared.
RETURN VALUE
These functions return a pointer to the beginning of the located substring, or NULL if the substring is not found.
-zulu
More information about the Elektro
mailing list