c language command-line arguments argc,argv

Start

int main(int argc, const char * argv[])

In the C language learning time,We are writing a program,Then view the results in a terminal run,Enter a number, and so on ...... do not know if you have not tried it allows you to write programs that can accept parameters like system commands it? For example,:ls -al like this。

If you wish to do so,Like above, as to declare it!

among them:

argv: Pointer Pointer

argc: Integer

For chestnuts

Assumptions program[……]

Click link to continue reading...

Commonly used strings in c-number function

atof(To convert a string into a floating-point number)

Related Functions atoi,atoll,strtod,strtol,strtoul
Header Files #include <stdlib.h>
Defined Functions double atof(const char * nptr);

Function Description atof()It scans the string parameter nptr,Skip over white space characters,Until a few metWord or the sign began to do the conversion,The encounter ended when non-numeric or string(‘/0’)[……]

Click link to continue reading...

What is SELinux

Profile

SELinux is "Security-Enhanced Linux"Abbreviation,Linux is a US National Security Agency, "NSA = The National Security Agency" and SCC (Secure Computing Corporation) developedExtended mandatory access control security module

Development reasons

Because a lot of trade secrets stored on the company's business platform server,personal information,It is directly related to the personal data of personal privacy[……]

Click link to continue reading...

Rebuild the OS x was deleted Recovery HD

DESCRIPTION

On OS X,There is always a lot of friends because of various reasons,For example, the dual system,For example, change the SSD, etc., etc.,The system will reluctantly comes with Recovery HD comes with this system rescue mode deleted - I do not think that anyone is simply to 650M of disk space and delete it, right =。= Short,While the system can use cmd + r networking at boot time to download,But at the crucial moment,Still very very inconvenient,Not to mention the U disk to do a system disk so the ......,Today, we teach a method of routing,From the system disk OS X[……]

Click link to continue reading...

Sign manually to your OS X patches marked with SSL

Update

Just this morning,Apple released version 10.9.2 update,大小 859.7M,If you do not brush out of the AppStore update,Do not worry,Go to the official website to downloadNow!

Foreword

Just two days ago,Apple Push the latest version of iOS7.0.6,The good news is not blocked escape vulnerability on。of course,The update does not change anything else,That fixes a vulnerability。What is the vulnerability has been calm this predicament usually make Apple such a large campaign do? That is SSL connection is established bug,This bug leads directly around when SSL authentication[……]

Click link to continue reading...

Huawei MA5680T Common examples of debugging commands

I recently in preparation for the contest three networks,Front also wrote an article entitled "Examples of commonly used maintenance commands SoftCo9500"As the article notes,Here,Write an accompanying configuration troubleshooting of EPON。EPONIt is "Ethernet passive optical network" shorthand,HuaweiMA5680TIs aEPONofOLT,Not repeat them here Related Terms,Default readers have a certain level of knowledge,the following,According to an example I will simply tell you about a few of my favorite troubleshooting commands。

The command here is the same with Huawei series,I want to get used to configuring Huawei[……]

Click link to continue reading...

Examples of commonly used maintenance commands SoftCo9500

Foreword

This time in preparation for a called "triple play" technology race,The game may be used HuaweiSoftCo9500Softswitch,By learning a few days,I summed up some of the more commonly used troubleshooting commands,Below for some simple examples to explain,These commands are a lot of overlapping content,Routing hope you will choose the most appropriate commands in the actual situation according to their needs。Although the practice is not necessarily all use,But for the game is typical among,It is indispensable。Due to the limited level of the author himself,Rush wording,[……]

Click link to continue reading...

IOS removal of advertising hosts

 

Today, the route is no longer recommended to use this method to remove ads,Jailbreak pro who can go to Cydia search artifact lessAD,Page, then there adblock,No jailbreak pro can also look at how the venue hereDo not remove the jailbreak annoying banner ads

correct,If you are interested,You can also look at the "Do you like to read it? Buy mini rabbit does not know how to use? If you are a university student,Let me give you some advice!

 

Apple's mobile operating system,Like iPhone,iPad[……]

Click link to continue reading...

Linux storage of lvm (Logical Volume Manager) Logical Volume Manager (1)

First we need to understand why with LVM

Generally expand partition:Need to be adjacent。

advantage:LVM makes it easier to manage disk space。If the file system needs more space,Available space volume groups which may be assigned to a logical volume,And you can adjust the size of the file system。If a disk error began to appear,You may be replaced by a disk volume group registered as physical volumes,And the logical volume range can be migrated to a new disk。

In a nutshell:LVM biggest benefit is,Increased easily reduce the partition。But we can not guarantee the security of data。

Lv[……]

Click link to continue reading...