git://developer.intra2net.com
/
libftdi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Added C++ examples to the build process
[libftdi]
/
examples
/
find_all_pp.cpp
diff --git
a/examples/find_all.cpp
b/examples/find_all_pp.cpp
similarity index 97%
rename from
examples/find_all.cpp
rename to
examples/find_all_pp.cpp
index
cc321f1
..
7a5a85d
100644
(file)
--- a/
examples/find_all.cpp
+++ b/
examples/find_all_pp.cpp
@@
-1,4
+1,4
@@
-/* cpp-simple.cpp
+/* final_all_pp.cpp
Simple libftdi-cpp usage
@@
-27,7
+27,7
@@
int main(int argc, char **argv)
// Parse args
int vid = 0x0403, pid = 0x6010, tmp = 0;
for(int i = 0; i < (argc - 1); i++)
- {
+ {
if(strcmp(argv[i], "-v") == 0)
if((tmp = strtol(argv[++i], 0, 16)) >= 0)
vid = tmp;