recentpopularlog in

kme : c   167

« earlier  
yest download |
Needs to be modified to support 'now', or 'today' as starting time/dates.
Download yest for free. This is a command line date/time manipulation and formatting program, very useful in scripts. You can easily add or subtract days, hours and/or minutes from a specified date.
timeanddate  unix  c  shellscripting  commandline  essential  movein  needshelp 
june 2019 by kme
NASA-SW-VnV/ikos: Static analyzer for C/C++ based on the theory of Abstract Interpretation.
Static analyzer for C/C++ based on the theory of Abstract Interpretation. - NASA-SW-VnV/ikos
c  cplusplus  staticanalyzer  devel 
may 2019 by kme
Baltasarq/cscrutil: Multiplatform screen console management for C |
Multiplatform screen console management for C. Contribute to Baltasarq/cscrutil development by creating an account on GitHub.
c  cplusplus  ansi  colors  ansicolors  console  cli  commandline  library  maybesolution 
february 2019 by kme
Cscope Home Page |
Try: 'ag -l --cpp | cscope -i- -b -q' (build cross-ref, inverted index)
devel  c  cplusplus  codesearch  crossreference  commandline  vim  asanide  solution 
february 2019 by kme
The Lean Mean C++ Option Parser: Main Page
<code class="language-c">
#include <iostream>
#include "optionparser.h"
enum optionIndex { UNKNOWN, HELP, PLUS };
const option::Descriptor usage[] =
{UNKNOWN, 0,"" , "" ,option::Arg::None, "USAGE: example [options]\n\n"
"Options:" },
{HELP, 0,"" , "help",option::Arg::None, " --help \tPrint usage and exit." },
{PLUS, 0,"p", "plus",option::Arg::None, " --plus, -p \tIncrement count." },
{UNKNOWN, 0,"" , "" ,option::Arg::None, "\nExamples:\n"
" example --unknown -- --this_is_no_option\n"
" example -unk --plus -ppp file1 file2\n" },
int main(int argc, char* argv[])
argc-=(argc>0); argv+=(argc>0); // skip program name argv[0] if present
option::Stats stats(usage, argc, argv);
option::Option options[stats.options_max], buffer[stats.buffer_max];
option::Parser parse(usage, argc, argv, options, buffer);
if (parse.error())
return 1;
if (options[HELP] || argc == 0) {
option::printUsage(std::cout, usage);
return 0;
std::cout << "--plus count: " <<
options[PLUS].count() << "\n";
for (option::Option* opt = options[UNKNOWN]; opt; opt = opt->next())
std::cout << "Unknown option: " << opt->name << "\n";
for (int i = 0; i < parse.nonOptionsCount(); ++i)
std::cout << "Non-option #" << i << ": " << parse.nonOption(i) << "\n";
devel  commandlineargs  parser  cplusplus  c  optionparser  alternativeto  ezoptionparser  getopt 
november 2017 by kme
c++ - Multi line preprocessor macros - Stack Overflow
You use \ as a line continuation escape character.

#define swap(a, b) { \
(a) ^= (b); \
(b) ^= (a); \
(a) ^= (b); \
c  devel  cpp  preprocessor  macros  linecontinuationcharacter  solution 
january 2017 by kme
bit manipulation - What are bitwise shift (bit-shift) operators and how do they work? - Stack Overflow
As you can see, the digits have shifted to the left by one position, and the last digit on the right is filled with a zero. You might also note that shifting left is equivalent to multiplication by powers of 2. So 6 << 1 is equivalent to 6 * 2, and 6 << 3 is equivalent to 6 * 8. A good optimizing compiler will replace multiplications with shifts when possible.
c  cplusplus  devel  bitshift  math  binary  dammitbrain  solution 
december 2016 by kme
The Rise of ``Worse is Better'' -
The good news is that in 1995 we will have a good operating system and programming language; the bad news is that they will be Unix and C++.

There is a final benefit to worse-is-better. Because a New Jersey language and system are not really powerful enough to build complex monolithic software, large systems must be designed to reuse components. Therefore, a tradition of integration springs up.
essay  worseisbetter  unix  c  programming 
march 2016 by kme
create your own time stamp | c/c++ programming by examples -
void timestamp()
time_t ltime; /* calendar time */
ltime=time(NULL); /* get current cal time */
printf("%s",asctime( localtime(&ltime) ) );
c  cplusplus  dammitbrain  timestamp 
november 2015 by kme
Ingo Krabbe - Re: trying to understand: "warning: function declaration isn't a proto
Ah and I even could reproduce your warning message, but it wasn't that easy
since gcc -Wall -Wextra -pedantic -ansi xy.c gives no warning. So I had to
turn on -Wstrict-prototypes. The warning vanishes when you write:

TApplContextPtr CreateApplContext (void);
^^^^ the void here makes the difference
linux  c  programming  errormessage  build  solution 
november 2015 by kme
seattlerb/rubyinline · GitHub -
Inline allows you to write foreign code within your ruby code. It
automatically determines if the code in question has changed and
builds it only when necessary. The extensions are then automatically
loaded into the class/module that defines it.

You can even write extra builders that will allow you to write inlined
code in any language. Use Inline::C as a template and look at
Module#inline for the required API.
ruby  inline  c  library 
october 2015 by kme
The C Preprocessor: Macros
Answer: the compiler will concatenate string constants
There is no way to combine an argument with surrounding text and stringify it all together. Instead, you can write a series of adjacent string constants and stringified arguments. The preprocessor will replace the stringified arguments with string constants. The C compiler will then combine all the adjacent string constants into one long string.
cplusplus  c  macro  reference  devel  solution 
july 2015 by kme
c++ - g++ -E option output - Stack Overflow
The '-E' option will stop after the preprocessor step, allowing you to verify macro expansion.

See also: (stringification and concatenation of string constants)
cplusplus  c  preprocessor  solution  devel 
july 2015 by kme
how to check glibc version?
Just execute:

ldd --version

which comes with glibc package
glibc  devel  dammitbrain  libraries  linux  c 
june 2015 by kme
Artistic Style - Index
These options work well:

astyle -A2 -xC80 -xL -Y -p
cplusplus  java  c  linter  codestyle  formatter  utility  software 
april 2015 by kme
How to use typedef struct tagName - C++ Forum []
typedef struct Point
int x;
int y;

void LineTo( Point pt ); // This is C
cplusplus  c  typedef  struct  solution 
march 2015 by kme
« earlier      
per page:    204080120160

Copy this bookmark:

to read