Quantcast
Channel: Share Programming Tips » tips
Browsing latest articles
Browse All 10 View Live

Find and replace command for whole directory in Linux

In many case most of the projects have so many files in so many different folder. So at some point you want to do find and replace for particular word in your whole project or whole directory in that...

View Article



Top/Best C/C++ IDE for Windows & Linux

How much time gone in project design & building logic that much time also gone in writing code So if you have better IDE then you can work faster and easily. So i am going to introduce you most...

View Article

Equivalent to getch() & getche() in Linux

Once in one situation i need to use getch() and getche() function in Linux based application so i have searched a lot for Equivalent header file for conio.h in Linux,But i came to know there is not any...

View Article

how to increase stack size in linux.

Normally you would set the stack size early on, e,g, at the start of main(), before calling any other functions. Typically the logic would be: call getrlimit to get current stack size if current size...

View Article

Whats is difference between file descriptor and file pointer?

After having 1 year of experience in c programming when someone has asked this to me i was surprised that why i dont know this…!! Well when i will going to interview someone in someday this would be my...

View Article


Why fopen() doesn’t get fail by passing directory name in argument?

Once i have made one small application where i was passing full file name as command line argument in my application where i am going to fopen() that file BUT once i have just passed any directory name...

View Article

How can I get what my main function has returned in Linux?

  In a C program if we want to give some input from terminal then we can give it by: int main(int argc, char *argv[]) In the same way, if we want to get return value of main() function then how can we...

View Article

How can i detect Windows or Linux in C,C++ programming?

  Sometimes we need to write platform independent  code which works in windows and linux machine without giving any flag or any modification in code or make file manually. So in such case i usually use...

View Article


Convert file descriptor to file pointer | Convert file pointer to file...

 If you all ready know the difference between file descriptor and file pointer then good otherwise please read this post Whats is difference between file descriptor and file pointer?     File...

View Article


Whether should i use processes or threads in Linux?

While designing any system usually we might confuse between thread and process usage . We think should we use thread or process for our requirement. Which will be the best choice.?   So Here are some...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images