1
0
Files
2022-09-29 17:59:04 +03:00

24 lines
549 B
C

/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)sccs:lib/mpwlib/any.c 6.2"
/*
If any character of `s' is `c', return 1
else return 0.
*/
any(c,s)
register char c, *s;
{
while (*s)
if (*s++ == c)
return(1);
return(0);
}