Skip to content
Tcl Source Code Artifact [3fab4a48bb]
Login

Artifact [3fab4a48bb]

Artifact 3fab4a48bb3119ae22442d05d04d57097a2dba2d:

Ticket change [3fab4a48bb] - New ticket [616480ffffffffff|616480ffff] <i>binary command: addition to man page</i>. by arjenmarkus on 2002-09-30 10:56:34.
D 2002-09-30T10:56:34
J assignee dkf
J cmimetype text/plain
J comment I\sfind\sthe\sbinary\scommand\svery\suseful\sfor\scertain\ntasks,\syet\sthe\sdescription\sof\sthe\scommand\sin\sthe\sman\npage\sis\sslightly\sconfusing.\sTherefore\sI\swould\slike\sto\nsubmit\ssome\sadditional\stext\sfor\sthe\sman\spage\sthat,\sI\nthink,\swill\sclarify\show\sto\suse\sit.\s(All\sthe\sinformation\nis\sthere,\sbut\sit\sis\sspread\sover\sthe\svarious\soptions,\nthe\sadditional\stext\sshould\ssummarise\ssome\saspects).\n\n[binary\sformat]\nAfter\sthe\sparagraph\sstarting\swith\s"The\sformatString\nconsists\sof\s..."\na\snew\sparagraph:\n\nHere\sis\sa\ssmall\sexample\sto\sclarify\sthe\srelation\sbetween\nthe\sfield\nspecifiers\sand\sthe\sarguments:\n\n\s\s\sbinary\sformat\sd3d\s{1.0\s2.0\s3.0\s4.0}\s0.1\n\nThe\sfirst\sargument\sis\sa\slist\sof\sfour\snumbers,\sbut\nbecause\sof\sthe\scount\nof\s3\sfor\sthe\sassociated\sfield\sspecifier,\sonly\sthe\sfirst\nthree\swill\nbe\sused.\sThe\ssecond\sargument\sis\sassociated\swith\sthe\nsecond\sfield\nspecifier.\sThe\sresulting\sbinary\sstring\scontains\sthe\nfour\nnumbers\s10,\s2.0,\s3.0\sand\s0.1.\n\n\n[binary\sscan]\nAfter\sthe\sparagraph\s"As\swith\sbinary\sformat\s..."\n\nA\ssimilar\sexample\sas\swith\s[binary\sformat]\sshould\nexplain\sthe\srelation\nbetween\sfield\sspecifiers\sand\sarguments\sin\scase\sof\sthe\nbinary\sscan\nsubcommand:\n\n\s\s\sbinary\sscan\s$bytes\sd3d\sfirst\ssecond\n\nThis\scommand\s(provided\sthe\sbinary\sstring\sin\s"bytes"\sis\nlong\senough)\nturns\sthe\svariable\s"first"\sinto\sa\slist\sof\sthree\snumbers\nand\sit\sassigns\sa\nsingle\svalue\sto\sthe\svariable\s"second".\n\n\nOption\s"a"\sin\sthe\ssection\son\s"binary\sscan":\sexplain\swhy\nvariable\svar2\s\nis\sleft\sunmodified\s(I\scould\snot\squite\sfigure\sit\sout\s:-)\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter arjenmarkus
J subsystem 16.\sCommands\sA-H
J title binary\scommand:\saddition\sto\sman\spage
J type Patch
K 616480ffffffffffffffffffffffffffffffffff
U arjenmarkus
Z c087f0113cb95393f0efbdf40a4a8f1c