mirror of https://github.com/lianthony/NT4.0
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.
31 lines
559 B
31 lines
559 B
/*++
|
|
|
|
Copyright (c) 1993 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
addkey.c
|
|
|
|
Abstract:
|
|
|
|
Contains:
|
|
DWORD AddKey( OUT PCHAR Target, IN CHAR Prefix, IN PCHAR Source)
|
|
|
|
Author:
|
|
|
|
Vladimir Z. Vulovic (vladimv) 19 - November - 1993
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "local.h"
|
|
|
|
DWORD AddKey( OUT PCHAR Target, IN CHAR Prefix, IN PCHAR Source)
|
|
{
|
|
DWORD Size;
|
|
Target[ 0] = Prefix;
|
|
Size = 1 + strlen( Source); // copy terminating null
|
|
memcpy( Target + sizeof( Prefix), Source, Size);
|
|
return( Size + sizeof( Prefix));
|
|
}
|