Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tschultze

    user names

    How about this? Use stat to get the UID for the file and then call getpwent to convert UID into a name: #include <sys/types.h> #include <sys/stat.h> #include <pwd.h> struct passwd *userinfo; struct stat buf; char *filespec = &quot;/usr/home/example&quot;; stat(filespec, &buf); userinfo =...
  2. tschultze

    Help with parsing the string

    The strtok function is probably the best approach: char *username; char *password; char *instance; char yourString[500]; strcpy(yourString, passedConnectString); username = strtok(yourString, &quot;/@&quot;); password = strtok(NULL, &quot;/@&quot;); instance = strtok(NULL, &quot;/@&quot;)...

Part and Inventory Search

Back
Top