■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./regex reg: <[aA]>(.*?)</[aA]> nmatch: 2 target: <a>hogehoge</a> result: Success(len=8) match: hogehoge
■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./regex reg: <[aA]>(.*?)</[aA]> nmatch: 2 target: <a>hogehoge</a> result: Success(len=8) match: hogehoge
■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./sysinfo uptime: 77616 1 minute load averages: 0 5 minute load averages: 1344 15 minute load averages: 0 totalram: 1059487744 freeram: 61054976 sharedram: 0 bufferram: 300855296 totalswap: 2146787328 freeswap: 2146787328 procs: 153 totalhigh: 134152192 freehigh: 7757824 mem_unit: 1
■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./diskfree / path=/, f_bsize=4096, f_frsize=4096, f_blocks=4495335, f_bfree=3759180, f_files=4643968, f_ffree=4526653, f_fsid=0, f_flag=0, f_namemax=255 パス 全容量 使用 使用可 使用% / 18412MB 3015MB 15397MB 16.4%
■開発環境
CentOS 5.10
■ソースコード
■実行結果
$ ./malticopy r.jpg w.jpg read file size=2456317 test01: 0.012952sec test02: 0.009495sec test03: 0.000595sec memcpy: 0.000485sec
■開発環境
CentOS 5.10
■yumでlibxmlライブラリをインストール
yum -y install libxml2-devel
■ソースコード
■実行結果
$ cat test.xml <ROOT prop1="123"> <Syain1> <Name> Uesugi Kensin </Name> <Age> 42 </Age> </Syain1> <Syain2> <Name> Takeda Singen </Name> <Age> 47 </Age> </Syain2> </ROOT> $ ./xmlGetTagString.o test.xml ROOT/Syain2 current name: ROOT, tagNo=0, depth=0 current name: Syain1, tagNo=1, depth=1 current name: Syain2, tagNo=1, depth=1 xmlTextReaderReadInnerXml= <Name> Takeda Singen </Name> <Age> 47 </Age> $
■参考
http://faithandbrave.hateblo.jp/entry/2014/05/01/171631
http://d.hatena.ne.jp/cube_tamayura/20110615
http://egawata.hatenablog.com/entry/20110110/1294643071