// // Windows NT Tape API Test : Written Sept 2, 1992 - Bob Rossi. // Copyright 1992 Archive Corporation. All rights reserved. // /** * * Unit: Windows NT API Test Code. * * Name: testlib.c * * Modified: 11/06/92. * * Description: Tests the Windows NT Tape API's. * * $LOG$ **/ #include #include #include #include #include #include #include "tapelib.h" #include "globals.h" /** * * Unit: Windows NT Tape API Test Code. * * Name: FindChar( ) * * Modified: 9/29/92. * * Description: Locates 'c' in "str". * * Notes: - * * Returns: The index into "str" of the first occurence of c. -1 * if not found. * * Global Data: - * **/ INT FindChar( UCHAR *str, // I - input string UCHAR c // I - char to search for in str ) { UINT i=0 ; while( str[i] != '\0' ) { if( str[i] ==c ) { return i ; } ++i ; } return (DWORD)(-1) ; } /** * * Unit: Windows NT Tape API Test Code. * * Name: PrintLine( ) * * Modified: 9/30/92. * * Description: Prints a line of character 'c' of length 'Length' * starting at column 1. * * Notes: - * * Returns: VOID. * * Global Data: - * **/ VOID PrintLine( UCHAR c, // I - The character to printed UINT Length // I - The length of line ) { UINT i ; printf( "\n" ) ; for( i=0 ; i