#include main() { char Host[64]; char User[64]; char *Buff = "Jobname=job1 Hostname=arnamul User=leslim Time=11:15"; /* <----------> <-----> <---------> <--------> * | | | | * | ------------ | | * | | ------------------ V * | | | NULL * V V V */ sscanf (Buff, "%*s Hostname=%s %s", Host, User); printf("Host is %s\n", Host); printf("User is %s\n", User); exit(0); } /************************************************************************ * * Job Output is: * * Host is arnamul * User is User=leslim * ************************************************************************/ id' value='35eeacf1820a08305c2b0960febfa190f5a6dd63'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/ceph/osdmap.c
AgeCommit message (Expand)AuthorFilesLines