C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.
0
votes
0answers
14 views
No acceptable C compiler found in $PATH [closed]
Using CentOS VPS, installed GCC as well as development tools, error still comes up.
Path is set to (i'm assuming by default)
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
-3
votes
0answers
20 views
File i/o in C not displaying [closed]
Why will nothing display?
#include <stdio.h>
#include <string.h>
#include <malloc.h>
struct cities {
char name[32];
int temp;
};
void main() {
int i = 5;
int ...
3
votes
2answers
35 views
Wait until SSH succeeds creating a port forwarding
I am calling ssh (OpenSSH) from a OSX/Linux-C++-Application via fork/exec to create a dynamic port forwarding. This is done using batch mode (-o BatchMode=yes) and a private key which is supplied to ...
1
vote
2answers
87 views
when trying to install the watir or watir-webdriver gem on Windows 7 via cygwin, getting long C stack trace with mentions of “W32 socket” issues
When running:
$ gem install watir
on Windows 7 (cygwin), I get this
ERROR: Error installing watir:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb
checking for ffi.h... ...
3
votes
1answer
105 views
How to run a Perl script in a Unix environment from Windows?
A little background:
I am trying to interact with data I have saved in Perl files using a program I wrote in C using the Win32 API. The C program is in Windows and the Perl files are accessed ...
0
votes
0answers
23 views
load balancing for dual wan interfaces on uclinux
I am trying to write load balancing shell script on my embedded mips board with uclinux.
I have one 3G and other ADSL connection to connect to Internet.
With
$ip a
platform shows both interfaces ...
0
votes
2answers
419 views
NetBeans + MinGW + C - file not found
I have installed NetBeans 7.3 (twice this day), and installed MinGW (many times today).
My OS Win 7 64
I tried to install MinGW with MSYS, tried MinGW with MSYS and MinGW DT, MinGW without MSYS, ...
1
vote
1answer
29 views
Open multiple tabs and split window based on files in Vim
I'm wondering, is there a way to open all my *.[c] files on different tabs, but split the window with the corresponding *.[h] file from the command line?
I can split one file as: vim -O file1.c ...
0
votes
1answer
16 views
Fedora 17 LXDE missing man 2 and man 3 C functions
everyone.
I am using Fedora 17, and I need to refer to some C functions, but man 2 malloc or man 3 malloc ( malloc for example ) are not working. Also man (function) is not working too. Any clues? I ...
0
votes
0answers
31 views
What is the command to show the disk usage in JFFS2 filesystem(which is a compressed filesystem)?
What is the command to show the disk usage in JFFS2 filesystem(which is a compressed filesystem)? I am using "df" to get total size and "du" to get used space, from that I can calculate the space ...
9
votes
2answers
558 views
How to stop and detect the fork bomb
#include <stdlib.h>
#include <unistd.h>
int main()
{
while(1)
fork();
}
This is the code for a fork bomb.
In our college, we connect via telnet i.e client serving protocol. ...
0
votes
0answers
80 views
apache httpd libapr linking .a .so
Problem
I need to compile and install an Apache module on AIX 6.1. This is the module
A. The Apache module is available only as source. I manageg to compile the source and the .so module was ...
0
votes
4answers
59 views
How to set the time temporarily in Linux
I am testing some code with some random numbers generated with the current time as the seed using
srand(time(0))
I'd like to get the same random numbers every time when I run it.
So I want to set ...
0
votes
1answer
41 views
Which Package has net_tstamp.h?
I attempted to compile the source code here:
http://os1a.cs.columbia.edu/lxr/source/Documentation/networking/timestamping/timestamping.c?a=x86;v=2.6.32
However, I got a compiler error:
error: ...
0
votes
0answers
78 views
apxs error apache aix rc=65536
I am trying to install the Crowd Apache Connector with (IBM xlc compiler, AIX 6.1 ).
I am able to make , but when running make install, it fails :
Making install in src
cp ...
-3
votes
1answer
47 views
USB Driver for Windows [closed]
I want to make a usb driver in c for windows. I have good background in c and c++.
Can anybody suggest me how should i start my development?any suggestion?
0
votes
0answers
63 views
Aptana Studio 3/Xcode 4.6 C Compiler for Mac
I have been looking all around the internet for an easier way for me to start C programming with the gcc module for Mac. Due to my fondness of Aptana Studio, I decided to see if their was a compiler ...
-4
votes
1answer
50 views
Best assembler -> C book? [closed]
I know there are good assembler books and there are good C/C++ books, but is there a book which maps the two programming languages/levels together?
2
votes
1answer
40 views
Environment variable's address is changing?
Don't ask why I am not posting this at Stack. So I have this small C program. It returns the address of the environment variable specified in argv[1].
#include <stdio.h>
#include ...
-5
votes
1answer
70 views
How to write the program? [closed]
I press the control keys like ctrl+c and ctrl+d in run time of the program.The program is print the signal name.
for example I press the ctrl+c means it print the name of the signal
print "You ...
0
votes
0answers
40 views
Ltmain.sh not found error
I am using currently fedora 17 when I try to autoreconf -i I am getting error
[root@nikolay libpackedobjects]# autoreconf -i
configure.ac:44: required file `../ltmain.sh' not found
autoreconf: ...
0
votes
1answer
94 views
OSX: Remaining in terminal after C program executes
2nd edit
Some clarifying...
I wrote a C program that asks for input (in this case, using fgets()). When I compile it into a C executable, I notice this behavior:
If I run the executable from the ...
1
vote
2answers
39 views
Making the keyboard eject switch work
I am using Linux.My keyboard switch for ejecting the CDROM does not work though it displays an eject button on the screen. I need to make it work. I know ejecting a cdrom using system call is as ...
2
votes
3answers
98 views
Copy C Drive, will it start up? [duplicate]
Possible Duplicate:
Clone a Hard Disk Content to Another Hard Disk
Bit-for-bit copy of hard drive in Windows?
I was just wondering, if you simply using something like gparted to ...
2
votes
1answer
202 views
execvp exec format error for shell script on Red Hat Enterprise Linux 6
We have two RHEL 6 systems that are running identical versions of the kernel and glibc (glibc–2.12–1.90.el6_3.6). According to the POSIX standard and the Linux man pages, if the kernel determines that ...
1
vote
1answer
93 views
Compressing multiple files into multiple archives?
I have a folder full of pdfs and I'm tired of Winraring each file separately. I don't want to put them all in one archive.
Isn't there a command line I can use to make Winrar compress a file with ...
0
votes
1answer
64 views
Makefile support for Tiny C Compiler
I just found the brilliant Tiny C Compiler while searching for a small portable C compiler for Windows (I cannot install anything on this system or copy files to it and so need to compile directly on ...
0
votes
3answers
39 views
Extra file with Same Name Created Automatically while writing a program in unix
Some time while writing a program for example
convert.c a file with same name followed by tiled(~) convert.c~ gets created in same directory. why is this so and whats really happening .please explain ...
0
votes
0answers
100 views
What would cause different rates of packet loss between client and server in UDP?
If I've implemented a reliable UDP file transfer protocol and I have a file that deliberately drops a percentage of packets when I transmit, why would it be more evident that transmission time ...
0
votes
2answers
39 views
GNU Emacs is crashing with -nw
When I run emacs with -nw option, the emacs really open, but I can't do more nothing. As if the user input is blocked and no keyboard signal is received and/or interpreted. I've tried run without load ...
1
vote
3answers
373 views
How to maximize GNOME Terminal on Linux
Environment: Red Hat Enterprise Linux, C language , Eclipse IDE for C/C++ Developers
Question: I'm programming a typing tutor which run on GNOME terminal, i want to maximize terminal when run ...
0
votes
2answers
777 views
How do I install package libc6-dev-i386 on fedora?
When I make yum install libc6-dev-i386 it says no package found, I searched on google and I only found that package for ubuntu or debian.
2
votes
3answers
185 views
syncing large files FreeBSD
I'm having a hard time getting my head around this.
My test setup has a shell script continuously calling 'ls -la' on a 1G file and printing out the time since the last time it ran. I then run a ...
1
vote
1answer
249 views
How can I install GCC on Mac OS X Lion without Xcode
I find it really hard to believe there is not simple solution to installing GCC on Mac without having to download and install 1GB+ of xCode. I found a site that helps reduce the amount of programs to ...
0
votes
0answers
85 views
Launch Webkit Gtk+ on ubuntu 11.10
I am using Webkit nightly build revision 110829 on Ubuntu 11.10. I successfully build it. Here is what I did:
In the Webkit directory I run:
Tools/Scripts/build-webkit --gtk
Built succeeded. I ...
0
votes
0answers
102 views
How to pass an IP address to inet_addr? [closed]
I can't seem to pass an IP address to inet_addr. I have gone through the debug but I still can't figure out why this won't work.
printf("Server IP\nIP:");
scanf("%s",cmdPtr);
//Bind socket
...
0
votes
0answers
305 views
Get current thread id in kernel based C code (Linux)
I have a module which is accessed for read/write operations to a proc file. I know I can get current process id using current->pid, but is there a way to get the current thread id that is accessing ...
1
vote
1answer
130 views
How to keep Ubuntu 11.10 and Kate editor w/terminal from changing command line when changing tabs?
I am programming C using Kate editor in Ubuntu 11.10. It works great, but when I change tabs in Kate, the terminal line changes to the file path of the tab I click on.
Normally this is not a big deal ...
1
vote
1answer
323 views
How can I get the number of threads running in a process from /proc/[pid]/stat in Linux?
I have the pid of the process. I would like to know the current number of thread running in the process. I know I can read /proc/pid/stat for this information, but I'm not sure how to specifically get ...
1
vote
1answer
66 views
View C source files (and files in other programming lanugages) in Icewasel/Firefox
How do I make C files appear in the browser's window when I navigate to them on a web page? (I use Iceweasel which should be identical to Firefox.)
I don't want to download the file, not open it in ...
4
votes
1answer
147 views
Kernel hacking methodology - how to find out where to hack the linux kernel
I have a throw-away cheap laptop I'd like to twiddle around, a Thinkpad SL 500.
What bothers me are two leds, the one for wireless connectivity, and the one for hibernation, which don't light up at ...
0
votes
0answers
26 views
Not satisfied with output [closed]
I am currently learning C. I follow this tutorial: http://www.tutorialspoint.com/cprogramming/c_structures.htm.
Here is my code:
#include <stdio.h>
#include <string.h>
struct plang
{
...
0
votes
0answers
27 views
Developing I/O port [closed]
I'm a EE and I'm looking to setup some home creations but I need some help on the CS side. I'm wanting to come up with a home server type setup with some I/O, like a parallel port I can set high and ...
0
votes
1answer
2k views
Installing Cygwin C and C++ compilers for NetBeans IDE 7.2
I am very new to Cygwin, C, C++ and NetBeans IDE 7.2. My PC is running MICROSOFT WINDOWS 7 OS.
I have read the documentation on how to install the Cygwin C C++ compilers.
...
0
votes
1answer
134 views
Enter Password when idle for minutes in CentOs
How to let a user login or enter his password again when idle for minutes in CentOs? thanks,,if there's no option for these in CentOs, then maybe you can suggest how to make a program that behaves ...
-1
votes
1answer
57 views
How to make sizeof? [closed]
I was told to make sizeof function. Which will work same as sizeof operator.
I build for single integer. Via pointer which will give sizeof pointer. But how to make for array of integer.
In short My ...
0
votes
1answer
142 views
C program output file gnome-terminal
I have created a C program and made an executable under Linux.
Right now, I open the executable by going first to gnome-terminal and then type
./<filename>
I want to create a shortcut icon ...
1
vote
1answer
104 views
How to run C project in Eclipse IDE?
I downloaded Eclipse IDE for from here and I create a sample project from here I followed steps as above link.But in code displays error in "#include" header file.how do I resolve this issue.Please ...
1
vote
1answer
148 views
How to clear orphaned watch descriptors of inotify
After creating a file descriptor by calling inotify_init() I add thousands of watches to the inotify instance(hope it is right to call that so).
My questions is if my program crashes what happens to ...
9
votes
4answers
475 views
Does linux have any measures to protect against fork bombs?
#include <unistd.h>
int main(int argc, char* argv[]) {
while(1)
{
fork();
}
}
I run this program on my linux, nothing outputs on the terminal, the OS seems go dead. Does linux have ...



