|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 543 (0x21f)
Types: TextFile
Names: »strchr.c«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦f68d31fd9⟧ »./gawk-2.11.tar.Z«
└─⟦2fc192871⟧
└─⟦this⟧ »gawk-2.11/missing.d/strchr.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦6dcdebfcf⟧ »EurOpenD3/gnu/gawk/gawk-2.11.1.tar.Z«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦6dcdebfcf⟧ »./gawk-2.11.1.tar.Z«
└─⟦3c42ca21a⟧
└─⟦this⟧ »gawk-2.11/missing.d/strchr.c«
/*
* strchr --- search a string for a character
*
* We supply this routine for those systems that aren't standard yet.
*/
char *
strchr (str, c)
register char *str, c;
{
for (; *str; str++)
if (*str == c)
return str;
return NULL;
}
/*
* strrchr --- find the last occurrence of a character in a string
*
* We supply this routine for those systems that aren't standard yet.
*/
char *
strrchr (str, c)
register char *str, c;
{
register char *save = NULL;
for (; *str; str++)
if (*str == c)
save = str;
return save;
}