/*
*
* Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*
*/
#ifndef lint
static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of Michigan.\nAll rights reserved.\n";
#endif
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h> /* malloc(), free() for Solaris */
#ifdef MACOS
#include <stdlib.h>
#include "macos.h"
#endif /* MACOS */
#include <malloc.h>
#include "msdos.h"
#endif /* DOS */
#include <errno.h>
#endif
#include "lber.h"
#include "ldap.h"
#include "ldap-private.h"
#include "ldap-int.h"
char *
{
int i, entries;
char *s;
#endif
return( uname );
}
return( uname );
entries = 0;
if ( buf[0] != '#' )
entries++;
}
sizeof(FriendlyMap) )) == NULL ) {
return( uname );
}
i = 0;
if ( buf[0] == '#' )
continue;
*s = '\0';
continue;
*s++ = '\0';
if ( *s == '"' ) {
for ( ++s; *s && !found; s++ ) {
switch ( *s ) {
case '\\':
esc = 1;
break;
case '"':
if ( !esc )
found = 1;
/* FALL */
default:
esc = 0;
break;
}
}
}
i++;
}
}
return( (*map)[i].f_friendly );
}
return( uname );
}
void
{
return;
while ( pF->f_unfriendly )
{
pF++;
}
}