In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1 # include
2 # include
3 # include
4 int main ()
5 {
6 char data [64] = {"{\" nvr_ip\ ":\" 192.168.1.143\ ",\" nvr_diskusage\ ":\" normal\ "}"}
7 printf ("% s\ n", data)
8 char nvr_ip [32], nvr_diskusage [32]
nine
10 sscanf (data, "{% [^,],% [^}]}", nvr_ip,nvr_diskusage)
11 printf ("% s\ n", nvr_ip)
12 printf ("% s\ n", nvr_diskusage)
thirteen
14 char recv_ip [32]
15 sscanf (nvr_ip, "% * [^:]:% s", recv_ip)
16 printf ("% s% ld\ n", recv_ip,strlen (recv_ip))
seventeen
18 char recv_diskusage [32]
19 sscanf (nvr_diskusage, "% * [^:]:% s", recv_diskusage)
20 printf ("% s% ld\ n", recv_diskusage,strlen (recv_diskusage))
twenty-one
22 char ip [32]
23 sscanf (recv_ip, "\"% [^\ "]", ip)
24 printf ("% s\ n", ip)
twenty-five
26 char diskusage [32]
27 sscanf (recv_diskusage, "\"% [^\ "]", diskusage)
28 printf ("% s\ n", diskusage)
29}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.