Written in pure C..
But I have included string.h as:
#include <string.h>     // for strnlen
#include <stdlib.h>     // for _countof, _itoa fns, _MAX_COUNT macros  
#include <conio.h>      // for  _getch  
#include <process.h>    // for system  
#include <io.h>         // for findfirst  
#include <locale.h>  
called here:
if( argc != 2 )   {
  printf("Usage: extension .001 or .alm only\n");
  return(0);   
}
else printf("Read %d %s\n",argc, argv[1]);
if( !_getcwd((char *)cdir, sizeof(cdir)))    {  
  printf("\n ! ERROR ! obtaining current disc directory!");  
  printf("\n .. any key ..");  
  _getch();  
  exit(-1);  
}
printf("\n Directory: %s\n", cdir);
if(!_stricmp(argv[1],"alm"))
  sprintf(csrch,"*.alm");  
else 
  sprintf(csrch,"*.001");
So why the error/warning?
 
     
    