| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
Posted 03-14-2011 at 10:52 PM by MrCode
Updated 04-02-2011 at 03:28 PM by MrCode
(Major program revision)
Code:
#include <stdio.h>
#include <string.h>
#include <malloc.h>
int main(int argc,char** argv)
{
char* str = malloc(1);
if(argc >= 2)
{
int i;
for(i = 1; i < argc; i++)
{
strcat(str," ");
strcat(str,argv[i]);
}
int len = strlen(str);
...
|
Member
|
|
Views 622
Comments 0
|
 |
Posted 02-04-2011 at 03:16 AM by MrCode
Updated 02-04-2011 at 03:17 AM by MrCode
I was mildly annoyed at the fact that LTris only lets you choose between 50, 100, 200, and no limit (as many frames as the system can render at a time) as FPS options, so I took the liberty of changing:
Code:
switch ( config.fps ) {
case 1: fps_delay = 20; break;
case 2: fps_delay = 10; break;
case 3: fps_delay = 5; break;
}
to:
Code:
switch ( config.fps ) {
case 1: fps_delay = 17; break;
...
|
Member
|
|
Views 588
Comments 0
|
 |
Posted 06-23-2010 at 06:10 PM by Web31337 (In The Middle Of Nowhere [edK's blog])
Updated 06-23-2010 at 06:12 PM by Web31337
Few days ago I've been into some C coding and again got impressed by how greatly linux is organised! Dependencies are written the clear way. The "./configure" script is a standard. The "Makefile" is a standard. and so on... they aren't strictly linux-related but I mostly work in Linux environment... I actually refer to UNIX standards I guess. It is so simple to create and redistribute own application using standard utils, making it easily-installable! I love this!
Anyway,...
|
Member
|
|
Views 671
Comments 0
|
 |
Posted 03-07-2010 at 10:29 AM by Web31337 (In The Middle Of Nowhere [edK's blog])
I've recently used to hear from many guys that PHP is bad and useless language. Well, generally the source of that point of thinking is a bad code written by newbies(or mature noobs).
Yes, I admit PHP has some basic functions missing, some features need to be improved, etc. It's far from ideal language. But it is very easy to learn. The problem here is many beginners starting from PHP without reading documentation properly, without looking for security in their apps, and, as a result we have...
|
Member
|
|
Views 779
Comments 0
|
All times are GMT -5. The time now is 05:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|