File:  [WindowsNT SDKs] / ntddk / src / scsi / qic117 / pad.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:31:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntddk-nov-1993, HEAD
Microsoft Windows NT Build 511 (DDK SDK) 11-01-1993

/*++

Copyright (c) 1993 - Colorado Memory Systems, Inc.
All Rights Reserved

Module Name:

    pad.c

Abstract:

    Padds a string with spaces (meets QIC-40 spec. for strings)

Revision History:




--*/

//
// Includes
//

#include <ntddk.h>

void
q117SpacePadString(
    IN OUT CHAR *InputString,
    IN LONG StrSize
    )

/*++

Routine Description:

    pads string with spaces

Arguments:

    InputString - string to be left justified and space padded
                    (QIC40 rev E spec).

    StrSize - maximum size of InputString.

Return Value:

    NONE

--*/


{
    LONG i;

    i = strlen(InputString);

    //
    // fill rest of string with spaces
    //
    for (;i<StrSize;++i) {
        InputString[i] = ' ';
    }
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.