http://www.ousob.com --- Legacy Redefined #include <memory.h> #include <nwlocal.h> #include <nwconn.h> #include <extend50.h> CLIPPER b_whoami() { WORD objType; int ccode; char objName[48]; long objID; BYTE loginTime[7]; char day[10], time[9], ttime[3], AmPm[3]; WORD year; int PM; char month[9]; WORD ConnectionNumber; int gotAproblem = 0; memset(objName,'\0',48); ConnectionNumber = GetConnectionNumber(); if( ConnectionNumber == 0 ){ gotAproblem = 1; } if( !gotAproblem ){ ccode = GetConnectionInformation( ConnectionNumber, objName, &objType, &objID, loginTime ); if ( ccode != 0 ){ objName[0] = NULL; } } _retc(objName); }