home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / mrl1.zip / fix.c next >
C/C++ Source or Header  |  1995-08-02  |  298b  |  16 lines

  1. #include <malloc.h>
  2. #include <string.h>
  3. #include "mrl.h"
  4.  
  5. int FixLRP(const char *dir)
  6. {
  7.  char *tmp2=malloc(250);
  8.  if(!tmp2) {WriteLog(logname," Malloc error in FixLRP",'!');return -1;}
  9.  strcpy(tmp2,dir);
  10.  strcat(tmp2,"\\lastread");
  11.  UpdateLRP(mmax,tmp2); 
  12.  free(tmp2);
  13.  return 0;
  14. }
  15.  
  16.