Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
891 B

/* Copyright (C) Boris Nikolaus, Germany, 1996-1997. All rights reserved. */
/* Copyright (C) Microsoft Corporation, 1997-1998. All rights reserved. */
#include "precomp.h"
/* check if a 16 bit character is a space */
int
ASN1is16space(ASN1char16_t c)
{
return c == ' ' || c == '\t' || c == '\b' || c == '\f' || c == '\r' ||
c == '\n' || c == '\v';
}
/* get length of a 16 bit string */
// lonchanc: lstrlenW()
int
ASN1str16len(ASN1char16_t *p)
{
int len;
for (len = 0; *p; p++)
len++;
return len;
}
/* check if a 32 bit character is a space */
int
ASN1is32space(ASN1char32_t c)
{
return c == ' ' || c == '\t' || c == '\b' || c == '\f' || c == '\r' ||
c == '\n' || c == '\v';
}
/* get length of a 32 bit string */
int
ASN1str32len(ASN1char32_t *p)
{
int len;
for (len = 0; *p; p++)
len++;
return len;
}