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.

learn more… | top users | synonyms

0
votes
2answers
905 views

E138: Can't write viminfo file

I'm using ncurses to create a tui to move through directories. I have the program opening editable files in vi using a system call def_prog_mode(); endwin(); sprintf(command, "%s %s", ...
0
votes
1answer
51 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
4answers
363 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
2answers
49 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 ...
0
votes
1answer
209 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 ...
0
votes
2answers
584 views

Make Tor use Unique IP for each instance open

How can I get Tor to use a unique IP for each instance of Tor open in C++, Python or Perl? Is there a command to force it to use a unique IP that I can just call using subprocess? *cheers
0
votes
3answers
57 views

Using Connection of one PC on another [closed]

I have two linux PC and connected through LAN cable.First PC having internet connection but second does not.I want second PC to use the connection of first PC through a C program. I am new to network ...
0
votes
2answers
52 views

Adding trec format tags to thousands of file

I need to add tags like text of file in thousand of files in a directory and I tried it using cat and outputing it to a stream of file using for file in * do cat ../gau > temp; //gau contain ...
0
votes
1answer
62 views

How can I locate the header + object file of cksum in Mac OS X

I'm trying to locate the header + object file of cksum in Mac OS X, but with no lack. Any suggestions?
0
votes
1answer
289 views

Vim bind compile key depending on document type

Is there a way to bind a key by document type? For example, if the document is a .tex file, I want f5 to call PdfLatex, but it is a .c file, I want it to call make
0
votes
1answer
295 views

Program parameters for anjuta

I have recently installed Anjuta. I don't know what parameters should be passed in order to run the program after clicking on Run -> Execute.
0
votes
2answers
358 views

Installing windows and unix on two hard drives on the same computer

I know this might be a noob question, but I need to install windows and a Unix system on the same machine. I've got two hard drives, so I can install one on each. Just not sure if maybe I would be ...
0
votes
0answers
11 views

0711-317 ERROR: Undefined symbol

I am installing a C package named expat-2.1.0 in AIX 6.1 machine. While performing a gmake it popping the below output. /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -g -O2 ...
0
votes
0answers
7 views

How to access PCI BarX value in DOS [closed]

I used Turbo C and tried to write a DOS PCI tool. I can detect my PCIe SATA host card and get the PCI configuration by CF8/CFC IO port. And I got the BARx address. Assume BAR 5 register and value ...
0
votes
1answer
16 views

Gstreamer unable to link API's , Linker error

I was trying to read the PAT table information , Color Balance interface etc using gstreamer in ubuntu . but the the definitions of the API's used by gstreamer to achieve these are not available ...
0
votes
0answers
22 views

How do I set up the NVIDIA nvcc toolchain in Netbeans 8.0 in windows 8.1

I found a plug-in for the nvcc toolchain but it only works on linux. What I want is to be able to compile CUDA C code on my windows computer from within Netbeans. ATM I'm using Netbeans 8 and MS ...
0
votes
0answers
13 views

How to get stdout of another program [duplicate]

Some Linux program prog1 permanently prints to console. I'd like to read and analyse it's stdout in my C program prog2 as stdin. I can't change prog1 source. I expect something like this command: ...
0
votes
0answers
50 views

How to convert 'c' program into python module

I want a program that can encrypt/decrypt a file on windows 7 using xxtea which is a fixed up version of tea. I found that google has such a system at ...
0
votes
0answers
71 views

Redirect output to console I/O on IAR Embedded Workbench

I have coded a project of mine in C on a Windows machine in the software IAR Embedded Workbench IDE. The project compiles and runs fine. I have a couple of printf functions in my code. But the thing ...
0
votes
1answer
54 views

stuck on i2cmaster library

i want to try repair my batteries with smbus hacker code over arduino. first it was has some problems. i have tried to fix them and i fix. now i have problem on library i2c\test_i2cmaster.c.o: In ...
0
votes
0answers
13 views

accesing G-listed sectors

is it possible to acces g-listed sectors? in the scsi protocol I can get the amount of g-listed sectors via a a scsi command however I wonder if I can try to read from them. maybe with a direct read ...
0
votes
0answers
41 views

How to get PID of proccess that send SIGRT?

I have a problem with getting sender PID. I write a simple program, but it is not working in function sig_handler in (*info).si_pid. It tells me that there is no such a member. Why? int sethandler( ...
0
votes
0answers
59 views

How to use astyle to format code for linux driver

How can I use astyle to format code for linux driver? I try usingn astyle like this astyle --style=linux myfile.c but it does not fix things like int i,j; there should be a space after ','. ...
0
votes
1answer
39 views

Virtual Machine Implementation similar to the JVM [closed]

I'd just like some information about how best to implement a virtual machine. I'd just like to know a couple of things: Is a VM more like a Virtual Computer or a Virtual Processor? What are some ...
0
votes
1answer
67 views

Need advice with making a customized linux distribution (From scratch or pre-existing distro?)

I'm working on an application on a bootable USB drive that runs at startup (doesn't give the user access to anything but this program). I figured I'd utilize an existing distribution, strip it of ...
0
votes
0answers
32 views

Building php module on linux - lpsolve55

I'm trying to install a php model called lpsolve. I installed it on OS, now trying to make a use of it for php. I installed them as explained here: http://jeyroz.tumblr.com/post/605709794/lpsolve-php ...
0
votes
1answer
52 views

running program in high priority -> does not log anymore

I have a project in visual C 2010 that needs real-time timing in high priority to eliminate stuff like hard disk maintenance and stuff. I ran the .exe file of my project using start "" /high & ...
0
votes
1answer
73 views

Cant compile SDL source file with gcc

i downloaded a manual of introduction to graphics programming with SDL, so i tried to compile my first source and it logged the next error the command to compile it was: $ gcc helloWorld.c [-o ...
0
votes
0answers
40 views

Codeblocks with MinGw not storing compiler location

I recently switched back to Windows on my primary computer and installed codeblocks bundled with MinGW. Now every time I launch the IDE I get a message warning me that codeblocks can't find my ...
0
votes
0answers
125 views

Ctrl-D does not do what it's supposed to in Cygwin on Win7, according to C tutorials

I'm following examples in the book Head First C, and I'm supposed to enter strings at the command line for the program to encrypt, then ctrl-D when I'm done. But ctrl-D doesn't have any effect.
0
votes
0answers
36 views

how do you hook into a live stream of 802.15.4 packets? [closed]

Using a packet sniffer I am able to detect and successfully read a "hello word" payload within an 802.15.4 frame. It's great can see the frames in the sniffer, but now I'm at the point where I ...
0
votes
0answers
282 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
1answer
254 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
1answer
183 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 ...
0
votes
1answer
157 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
0answers
261 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
0answers
528 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 ...
0
votes
1answer
118 views

Setup Eclipse on Fedora LiveUSB for Developing C Application

I don't have a lot of disk space on my computer, so I'm thinking of installing a version of Fedora on LiveUSB with an Eclipse package to program and debug C applications for one of my lectures, no ...
0
votes
1answer
269 views

Mingw Shell Console Issue

I recently installed MingW/Msys on my XP Pro box (SP 3). When I attempt to open a Mingw shell as a console it behaves incorrectly. The shell window opens for perhaps 5 seconds and then the window ...
0
votes
1answer
450 views

Does stat/lstat on nonexistent file cause a disk seek?

When searching for a library file from a right folder, my application currently does couple of lstat's for the possible locationslocations. Now I'm wondering whether these lstat's (application is ...
0
votes
2answers
434 views

How to install Sally on Mac? How to install libconfig package on Mac OSX

I want to install Sally http://www.mlsec.org/sally/ on MacOSX when I run ./configure, I get stuck at: No package 'libconfig' found even after installing libconfig through macports. Can anyone ...
0
votes
1answer
846 views

How do I find the installation path of binutils, gcc-3.4.4.tar.gz in Ubuntu?

I have ubuntu 8.10. In this I could find the binutils, gcc are installed. But when ever I try to know that glibc, glibc-linuxthreads are installed are not. It showing that no package is found. For ...
-1
votes
1answer
96 views

C/C++ programs hang in Windows 7 console

I've installed Windows 7 Home Premium. It's working fine, except one major problem. When I run any C or C++ program in the console, using any software like Dev-C++, Code::Blocks or Visual Studio, it ...
-2
votes
1answer
127 views

OSX zsh - Why do binaries only execute with the full path? [duplicate]

I'm just writing some small C scripts and testing them. Why dose ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ; work just fine while ~ Desktop: gcc test.c -o test ; test ; dose not ...
-3
votes
1answer
79 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?
-4
votes
1answer
85 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?