aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2014-11-27 21:29:04 +0100
committerfilip <filip.komar@gmail.com>2014-11-27 21:29:04 +0100
commit5563cb96780166d7705efe01efd309f9b646907b (patch)
tree41fff4efc05e3286eb9093b416b2c5b51b7c21f0 /calendar
parent7916190ab84f3855b7c19838a8487ccd53e71027 (diff)
downloadwww-5563cb96780166d7705efe01efd309f9b646907b.tar
www-5563cb96780166d7705efe01efd309f9b646907b.tar.gz
www-5563cb96780166d7705efe01efd309f9b646907b.tar.bz2
www-5563cb96780166d7705efe01efd309f9b646907b.tar.xz
www-5563cb96780166d7705efe01efd309f9b646907b.zip
sync l10n for mga3 EOL
Diffstat (limited to 'calendar')
0 files changed, 0 insertions, 0 deletions
=a2777beb22f9cf6133eb3504dd6c60dd588003c6'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Copyright (c) 1992, 1999, 2001 John E. Davis
 * This file is part of the S-Lang library.
 *
 * You may distribute under the terms of either the GNU General Public
 * License or the Perl Artistic License.
 */

/* These routines are fast memcpy, memset routines.  When available, I
   use system rouines.  For msdos, I use inline assembly. */

/* The current versions only work in the forward direction only!! */

#include "slinclud.h"

#include "slang.h"
#include "_slang.h"

char *SLmemchr(register char *p, register char c, register int n)
{
   int n2;
   register char *pmax;

   pmax = p + (n - 32);

   while (p <= pmax)
     {
	if ((*p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c)
	    || (*++p == c) || (*++p == c) || (*++p == c) || (*++p == c))
	  return p;
	p++;
     }

   n2 = n % 32;

   while (n2--)
     {
	if (*p == c) return p;
	p++;
     }
   return(NULL);
}