I love lucid chart. It’s not possible to carry Microsoft Visio all the time. But this swiss knife is always handy.
[ cloud overview | get your own cloud ]
This is a Tumblr Cloud I generated from my blog posts between Jul 2008 and Oct 2011 containing my top 20 used words.
Top 1 blogs I reblogged the most:
my cloud
First of all In the Project Directory
git init
git add <filename>
git commit -a
Then
Your GIT_Repository section
git clone —bare <project_directory>
This will create a GIT repository to the Project Directory which you can share and people can clone it from.
int snprintf(char *str, size_t size, const char *format, ...);
int vsnprintf(char *str, size_t size, const char *format, va_list args);
Writes output to the string str, under control of the format string format, that specifies how subsequent arguments are converted for output. It is similar to sprintf(3), except that size specifies the maximum number of characters to produce. The trailing nul character is counted towards this limit, so you must allocate at least size characters for str.
If size is zero, nothing is written and str may be null. Otherwise, output characters beyond the n-1st are discarded rather than being written to str, and a nul character is written at the end of the characters actually written to str. If copying takes place between objects that overlap, the behaviour is undefined.
Example,
#include <slack/std.h> #ifndef HAVE_SNPRINTF #include <slack/snprintf.h> #endif int main(int ac, char **av) { char buf[16]; char *str = buf; char *extra = NULL; int len; if (!av[1]) return EXIT_FAILURE; if ((len = snprintf(buf, 16, "%s", av[1])) >= 16) if (extra = malloc((len + 1) * sizeof(char))) snprintf(str = extra, len + 1, "%s", av[1]); printf("%s\n", str); if (extra) free(extra); return EXIT_SUCCESS; }
"Satisfaction lies in the effort, not in the attainment. Full effort is full victory."
Mahatma Gandhi (via kari-shma)
(via quote-book)
#include <strings.h>
int strcasecmp(const char *s1, const char *s2);
int strncasecmp(const char *s1, const char *s2, size_t n);
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
The strcasecmp() and strncasecmp() functions return an integer less than, equal to, or greater than zero if s1 (or the first n bytes thereof) is found, respectively, to be less than, to match, or be greater than s2.
#include
<iostream>
using namespace std;
int main()
{
struct stat FileInfo;
char filename[20] = "clock.cpp";
//Attempt to get the attribute of the file
int Stat = stat(filename , &FileInfo );
if (Stat == 0){
cout << "Success\n";
cout << "File Info: \n";
cout << "Size in Bytes : " << FileInfo.st_size << endl;
cout << "File's Owner Identification Number : " << FileInfo.st_uid << endl;
}
else{
cout << "Fail";
}
return 0;
}