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.
 
 
 
 
 
 

72 lines
1.0 KiB

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
libutil.c
Abstract:
Utility functions
Environment:
Windows NT printer drivers
Revision History:
08/13/96 -davidx-
Added CopyString functions and moved SPRINTF functions.
08/13/96 -davidx-
Added devmode conversion routine and spooler API wrapper functions.
03/13/96 -davidx-
Created it.
--*/
#include <lib.h>
#if DBG
//
// Variable to control the amount of debug messages generated
//
INT giDebugLevel = DBG_WARNING;
PCSTR
StripDirPrefixA(
IN PCSTR pstrFilename
)
/*++
Routine Description:
Strip the directory prefix off a filename (ANSI version)
Arguments:
pstrFilename - Pointer to filename string
Return Value:
Pointer to the last component of a filename (without directory prefix)
--*/
{
PCSTR pstr;
if (pstr = strrchr(pstrFilename, PATH_SEPARATOR))
return pstr + 1;
return pstrFilename;
}
#endif