Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
1d7b633a
Commit
1d7b633a
authored
Jan 11, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил "ускорение" для потоков в/в (std::ios::sync_with_stdio(false);)
во все запускаемые программы.
parent
a77d88a8
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
33 additions
and
8 deletions
+33
-8
mbrtuslave.cc
Utilities/MBTester/mbrtuslave.cc
+1
-0
mbrtutester.cc
Utilities/MBTester/mbrtutester.cc
+1
-0
mbslave.cc
Utilities/MBTester/mbslave.cc
+2
-1
mbtcpserver.cc
Utilities/MBTester/mbtcpserver.cc
+1
-0
mbtcptester.cc
Utilities/MBTester/mbtcptester.cc
+1
-0
main.cc
Utilities/NullController/main.cc
+1
-0
main.cc
Utilities/SImitator/main.cc
+1
-0
smonitor.cc
Utilities/SMonit/smonitor.cc
+1
-0
main.cc
Utilities/SViewer-text/main.cc
+1
-0
main.cc
extensions/DBServer-MySQL/main.cc
+1
-0
main.cc
extensions/DBServer-SQLite/main.cc
+1
-0
iocalibr.cc
extensions/IOControl/iocalibr.cc
+1
-0
iocontrol.cc
extensions/IOControl/iocontrol.cc
+2
-1
logicproc.cc
extensions/LogicProcessor/logicproc.cc
+1
-0
plogicproc.cc
extensions/LogicProcessor/plogicproc.cc
+1
-0
main.cc
extensions/ModbusMaster/main.cc
+1
-0
mtr-conv.cc
extensions/ModbusMaster/mtr-conv.cc
+2
-1
mtr-read.cc
extensions/ModbusMaster/mtr-read.cc
+1
-0
mtr-setup.cc
extensions/ModbusMaster/mtr-setup.cc
+1
-0
rtuexchange.cc
extensions/ModbusMaster/rtuexchange.cc
+1
-0
mbslave.cc
extensions/ModbusSlave/mbslave.cc
+1
-1
mbtcp-multislave.cc
extensions/ModbusSlave/mbtcp-multislave.cc
+1
-1
main.cc
extensions/RRDServer/main.cc
+1
-0
smemory.cc
extensions/SharedMemory/smemory.cc
+3
-1
start_fg.sh
extensions/SharedMemory/start_fg.sh
+1
-1
smemory-plus.cc
extensions/SharedMemoryPlus/smemory-plus.cc
+2
-1
unetexchange.cc
extensions/UNetUDP/unetexchange.cc
+1
-0
No files found.
Utilities/MBTester/mbrtuslave.cc
View file @
1d7b633a
...
@@ -35,6 +35,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
...
@@ -35,6 +35,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
int
verb
=
0
;
int
verb
=
0
;
...
...
Utilities/MBTester/mbrtutester.cc
View file @
1d7b633a
...
@@ -96,6 +96,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
...
@@ -96,6 +96,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
Command
cmd
=
cmdNOP
;
Command
cmd
=
cmdNOP
;
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
...
...
Utilities/MBTester/mbslave.cc
View file @
1d7b633a
...
@@ -31,7 +31,8 @@ static void print_help()
...
@@ -31,7 +31,8 @@ static void print_help()
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
int
verb
=
0
;
int
verb
=
0
;
...
...
Utilities/MBTester/mbtcpserver.cc
View file @
1d7b633a
...
@@ -33,6 +33,7 @@ static void print_help()
...
@@ -33,6 +33,7 @@ static void print_help()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
int
verb
=
0
;
int
verb
=
0
;
...
...
Utilities/MBTester/mbtcptester.cc
View file @
1d7b633a
...
@@ -75,6 +75,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
...
@@ -75,6 +75,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
Command
cmd
=
cmdNOP
;
Command
cmd
=
cmdNOP
;
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
...
...
Utilities/NullController/main.cc
View file @
1d7b633a
...
@@ -21,6 +21,7 @@ static void short_usage()
...
@@ -21,6 +21,7 @@ static void short_usage()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
<=
1
)
if
(
argc
<=
1
)
...
...
Utilities/SImitator/main.cc
View file @
1d7b633a
...
@@ -25,6 +25,7 @@ struct ExtInfo:
...
@@ -25,6 +25,7 @@ struct ExtInfo:
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
// help
// help
...
...
Utilities/SMonit/smonitor.cc
View file @
1d7b633a
...
@@ -9,6 +9,7 @@ using namespace std;
...
@@ -9,6 +9,7 @@ using namespace std;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
)
)
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
)
)
)
...
...
Utilities/SViewer-text/main.cc
View file @
1d7b633a
...
@@ -13,6 +13,7 @@ static void short_usage()
...
@@ -13,6 +13,7 @@ static void short_usage()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
...
...
extensions/DBServer-MySQL/main.cc
View file @
1d7b633a
...
@@ -13,6 +13,7 @@ static void short_usage()
...
@@ -13,6 +13,7 @@ static void short_usage()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
...
...
extensions/DBServer-SQLite/main.cc
View file @
1d7b633a
...
@@ -13,6 +13,7 @@ static void short_usage()
...
@@ -13,6 +13,7 @@ static void short_usage()
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--help"
)
)
...
...
extensions/IOControl/iocalibr.cc
View file @
1d7b633a
...
@@ -75,6 +75,7 @@ static struct option longopts[] = {
...
@@ -75,6 +75,7 @@ static struct option longopts[] = {
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
std
::
ios
::
sync_with_stdio
(
false
);
comedi_t
*
card
;
comedi_t
*
card
;
const
char
*
dev
=
"/dev/comedi0"
;
const
char
*
dev
=
"/dev/comedi0"
;
lsampl_t
data
=
0
;
lsampl_t
data
=
0
;
...
...
extensions/IOControl/iocontrol.cc
View file @
1d7b633a
...
@@ -10,7 +10,8 @@ using namespace std;
...
@@ -10,7 +10,8 @@ using namespace std;
using
namespace
UniSetExtensions
;
using
namespace
UniSetExtensions
;
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
strcmp
(
argv
[
1
],
"--help"
)
==
0
)
if
(
argc
>
1
&&
strcmp
(
argv
[
1
],
"--help"
)
==
0
)
{
{
cout
<<
"--io-confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
cout
<<
"--io-confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
...
...
extensions/LogicProcessor/logicproc.cc
View file @
1d7b633a
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
auto
conf
=
uniset_init
(
argc
,
argv
);
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/LogicProcessor/plogicproc.cc
View file @
1d7b633a
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
auto
conf
=
uniset_init
(
argc
,
argv
);
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/ModbusMaster/main.cc
View file @
1d7b633a
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
{
{
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
...
...
extensions/ModbusMaster/mtr-conv.cc
View file @
1d7b633a
...
@@ -13,7 +13,8 @@ static void print_help()
...
@@ -13,7 +13,8 @@ static void print_help()
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
unsigned
short
v1
=
0
;
unsigned
short
v1
=
0
;
unsigned
short
v2
=
0
;
unsigned
short
v2
=
0
;
const
char
*
type
=
""
;
const
char
*
type
=
""
;
...
...
extensions/ModbusMaster/mtr-read.cc
View file @
1d7b633a
...
@@ -57,6 +57,7 @@ static void readMTR( ModbusRTUMaster* mb, ModbusRTU::ModbusAddr addr,
...
@@ -57,6 +57,7 @@ static void readMTR( ModbusRTUMaster* mb, ModbusRTU::ModbusAddr addr,
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
Command
cmd
=
cmdNOP
;
Command
cmd
=
cmdNOP
;
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
...
...
extensions/ModbusMaster/mtr-setup.cc
View file @
1d7b633a
...
@@ -73,6 +73,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
...
@@ -73,6 +73,7 @@ static char* checkArg( int ind, int argc, char* argv[] );
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
Command
cmd
=
cmdNOP
;
Command
cmd
=
cmdNOP
;
int
optindex
=
0
;
int
optindex
=
0
;
int
opt
=
0
;
int
opt
=
0
;
...
...
extensions/ModbusMaster/rtuexchange.cc
View file @
1d7b633a
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
...
...
extensions/ModbusSlave/mbslave.cc
View file @
1d7b633a
...
@@ -15,7 +15,7 @@ using namespace std;
...
@@ -15,7 +15,7 @@ using namespace std;
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
{
{
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
...
...
extensions/ModbusSlave/mbtcp-multislave.cc
View file @
1d7b633a
...
@@ -15,7 +15,7 @@ using namespace std;
...
@@ -15,7 +15,7 @@ using namespace std;
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
{
{
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
...
...
extensions/RRDServer/main.cc
View file @
1d7b633a
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
...
@@ -11,6 +11,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
{
{
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
cout
<<
"--smemory-id objectName - SharedMemory objectID. Default: autodetect"
<<
endl
;
...
...
extensions/SharedMemory/smemory.cc
View file @
1d7b633a
...
@@ -10,13 +10,15 @@ using namespace UniSetExtensions;
...
@@ -10,13 +10,15 @@ using namespace UniSetExtensions;
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
strcmp
(
argv
[
1
],
"--help"
)
==
0
||
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
)
if
(
argc
>
1
&&
(
strcmp
(
argv
[
1
],
"--help"
)
==
0
||
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
)
{
{
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
cout
<<
"--confile - Использовать указанный конф. файл. По умолчанию configure.xml"
<<
endl
;
SharedMemory
::
help_print
(
argc
,
argv
);
SharedMemory
::
help_print
(
argc
,
argv
);
return
0
;
return
0
;
}
}
try
try
{
{
auto
conf
=
uniset_init
(
argc
,
argv
);
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/SharedMemory/start_fg.sh
View file @
1d7b633a
...
@@ -5,6 +5,6 @@ export LD_LIBRARY_PATH="../../lib/.libs;../lib/.libs"
...
@@ -5,6 +5,6 @@ export LD_LIBRARY_PATH="../../lib/.libs;../lib/.libs"
ulimit
-Sc
10000000000
ulimit
-Sc
10000000000
./uniset2-start.sh
-f
./uniset2-smemory
--smemory-id
SharedMemory
--pulsar-id
DO_C
--pulsar-iotype
DO
--pulsar-msec
100
\
./uniset2-start.sh
-f
./uniset2-smemory
--smemory-id
SharedMemory
--pulsar-id
DO_C
--pulsar-iotype
DO
--pulsar-msec
100
\
--confile
test.xml
--datfile
test.xml
--db-logging
1
\
--confile
test.xml
--datfile
test.xml
--db-logging
1
$*
\
#--ulog-add-levels info,crit,warn,level9,system \
#--ulog-add-levels info,crit,warn,level9,system \
#--dlog-add-levels info,crit,warn \
#--dlog-add-levels info,crit,warn \
extensions/SharedMemoryPlus/smemory-plus.cc
View file @
1d7b633a
...
@@ -59,12 +59,13 @@ void activator_terminate( int signo )
...
@@ -59,12 +59,13 @@ void activator_terminate( int signo )
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
if
(
argc
>
1
&&
(
strcmp
(
argv
[
1
],
"--help"
)
==
0
||
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
)
if
(
argc
>
1
&&
(
strcmp
(
argv
[
1
],
"--help"
)
==
0
||
strcmp
(
argv
[
1
],
"-h"
)
==
0
)
)
{
{
help_print
(
argc
,
argv
);
help_print
(
argc
,
argv
);
return
0
;
return
0
;
}
}
try
try
{
{
auto
conf
=
uniset_init
(
argc
,
argv
);
auto
conf
=
uniset_init
(
argc
,
argv
);
...
...
extensions/UNetUDP/unetexchange.cc
View file @
1d7b633a
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
...
@@ -9,6 +9,7 @@ using namespace UniSetExtensions;
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
int
main
(
int
argc
,
const
char
**
argv
)
{
{
std
::
ios
::
sync_with_stdio
(
false
);
try
try
{
{
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
if
(
argc
>
1
&&
(
!
strcmp
(
argv
[
1
],
"--help"
)
||
!
strcmp
(
argv
[
1
],
"-h"
))
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment