|
|
1.1 ! root 1: /*++ ! 2: ! 3: Copyright (c) 1993 - Colorado Memory Systems, Inc. ! 4: All Rights Reserved ! 5: ! 6: Module Name: ! 7: ! 8: pad.c ! 9: ! 10: Abstract: ! 11: ! 12: Padds a string with spaces (meets QIC-40 spec. for strings) ! 13: ! 14: Revision History: ! 15: ! 16: ! 17: ! 18: ! 19: --*/ ! 20: ! 21: // ! 22: // Includes ! 23: // ! 24: ! 25: #include <ntddk.h> ! 26: ! 27: void ! 28: q117SpacePadString( ! 29: IN OUT CHAR *InputString, ! 30: IN LONG StrSize ! 31: ) ! 32: ! 33: /*++ ! 34: ! 35: Routine Description: ! 36: ! 37: pads string with spaces ! 38: ! 39: Arguments: ! 40: ! 41: InputString - string to be left justified and space padded ! 42: (QIC40 rev E spec). ! 43: ! 44: StrSize - maximum size of InputString. ! 45: ! 46: Return Value: ! 47: ! 48: NONE ! 49: ! 50: --*/ ! 51: ! 52: ! 53: { ! 54: LONG i; ! 55: ! 56: i = strlen(InputString); ! 57: ! 58: // ! 59: // fill rest of string with spaces ! 60: // ! 61: for (;i<StrSize;++i) { ! 62: InputString[i] = ' '; ! 63: } ! 64: } ! 65:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.