Zilog ZUSBOPTS Bedienungsanleitung Seite 476

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 520
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 475
Standard Functions UM017105-0511
448
Zilog Developer Studio II – ZNEO™
User Manual
strrchr
Locates the last occurrence of c (converted to a char) in the string pointed to by s. The
terminating null character is considered to be part of the string.
Synopsis
#include <string.h>
char *strrchr(const char *s, int c);
Returns
A pointer to the character, or a null pointer if c does not occur in the string.
Example
char *ptr;
char s1[]="COMPASS";
ptr=strrchr(s1,'p');
strspn
Finds the first substring from a given character set in a string.
Synopsis
#include <string.h>
size_t strspn(const char *s1, const char *s2);
Returns
The length of the segment.
Example
char s1[]="cabbage";
char s2[]="abc";
size_t res,
res=strspn(s1,s2);
strstr
Locates the first occurrence of the string pointed to by s2 in the string pointed to by s1.
Seitenansicht 475
1 2 ... 471 472 473 474 475 476 477 478 479 480 481 ... 519 520

Kommentare zu diesen Handbüchern

Keine Kommentare