C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. Questions about programming in C are off topic and will be closed or migrated. Consider asking your question at Stack Overflow instead.

0
votes
1answer
45 views

Assign values to variable from text file. Search for the string in file. Replace the string in file?

I am working on a project where I need to correct some thousand lines of data. I have already completed the half work and now I am stuck on final part.I have a file called tree.txt which has list of ...
0
votes
1answer
75 views

how to open reference in new or next split in vim

When I move over a key word and then hit ^], it will jump to the reference in this very split. How can I keep my current window the same and instead open the reference in another split window (either ...
-2
votes
3answers
54 views

Is C a part of the .NET framework?

I've searched the net for this, but I couldn't really find an answer. I've found this though: https://msdn.microsoft.com/en-us/library/hh875057.aspxIt says that C++ is a part of the .NET framework, ...
0
votes
0answers
46 views

linux virtual comport drivers for AR drone.

I have been working on this problem for quite a while now and cannot seem to find the correct driver for Linux to interface with an STM32F407. The Linux runs on an AR drone 2.0. The STM already acts ...
0
votes
0answers
30 views

NetBeans not working (can't run, clean, compile or build)

A few days ago Netbeans just stopped working completely. I can browse the settings, create projects etc. but nothing happens when I try to run the project (C projects), compile or build it, the output ...
0
votes
0answers
38 views

Why don't I get information from `apropos pthread` in Terminal on OS X?

When I run apropos pthread in Terminal on OS X, I get pthread: nothing appropriate. However, when I run the same command on a Linux machine, I get over a hundred APIs for reference in man-pages. I ...
0
votes
1answer
61 views

Predefine unix socket path for ssh-agent

I have an application which creates an x-session, the problem I'm having is with ssh-agent.Lets say I have created a unix socket, and then create x-session(in this session ssh-agent is launched). ...
-1
votes
1answer
59 views

what is the limitation of Libmicrohttpd?

I want to develop a HTTP server based on the library Libmicrohttpd.And I'm wondering what is the maximum number of users connecting at the same time that Libmicrohttpd can support?
0
votes
1answer
53 views

How to handle addition of new files and directories to FAT12 floppy image from Ubuntu 16.04?

I need to write a program that creates a floppy image of FAT12. The instructions include creating a boot sector, making sure I set aside space for two FAT tables, setting up space for root directory ...
0
votes
0answers
26 views

Error when run my makefile for C compiler AIX UNIX

Below is my makefile CC=xlC CFLAGS=$(DEBUG) -O -q64 -qrtti=all \ -I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public \ -I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/...
0
votes
1answer
466 views

CMake error when creating project in CLion

I recently uninstalled Cygwin and switched to using MinGW as my toolchain. I installed the required packages; I triple checked to make sure that mingw32-make, mingw32-gcc and mingw32-gcc-g++ are all ...
0
votes
0answers
296 views

Cygwin make command not working

Programmed a simple server and client file in vim, and not sure how to actually compile the code. I opened another window and tried to use the make command, which i downloaded during the setup of ...
2
votes
1answer
87 views

Vim match containedin not working as expected

I have tried to extend the C syntax in Vim with the example in the manual.First I launch vim without any config:vim -u NONE test.cThen I load the c-syntax and create my extensionsyntax on...
0
votes
0answers
33 views

Driver from C code (autoload, kext, lkm)

I've made a question on StackOverflow thinking it was the right place for asking, but they directed me here because they think its a SuperUser-releated topic. So here I am :)I'd like to ask you how ...
1
vote
0answers
28 views

setuid bit has different behavior depending on the directory

I've been testing the setuid permission, and I am having some trouble to making it work.Let's say I am doing the tests with two user owneruser and otheruser.I've written a simple c program that ...
1
vote
0answers
65 views

Windows 10: New Audio adapter is set as default

I have an winapi application which creates an audio adapter, but the problem is that whenever adapter is created it is set as default audio adapter and I don't want that. Does anyone know how to ...
0
votes
0answers
143 views

Convert ffmpeg command to ffmpeg c++ api for android jni

is possible convert this command to c++ for android jni:ffmpeg -y -framerate 1/0.5 -start_number 1 -i /sdcard/zzz/img%4d.jpg -i /sdcard/zzz/audio.mp3 -s 800x800 -c:v libx264 -tune zerolatency -r 25 -...
0
votes
2answers
89 views

linux high speed character detection rs232

I have to do a code in C to detect the inter-characters time within a rs232 line on linux. Inter-characters time to detect could be 1ms. So I need something to timestamp very quickly an incomming ...
0
votes
1answer
33 views

Converting data into sound (alphabet into low frequency noises), how can it be done? [closed]

I'm looking to assign a specific frequency to each letter, so that the frequency is sent out for each letter, when processed (whether by key press, or otherwise).Can you set speakers to produce any ...
0
votes
1answer
86 views

How to check used space for pvdisplay?

In AIX using lspv hdisk0, i am able to get total pps, free pps, used ppsTOTAL PPs: 1119 (71616 megabytes) VG DESCRIPTORS: 2FREE PPs: 272 (17408 megabytes) HOT SPARE: ...
1
vote
1answer
154 views

How do I cross compile the avahi-client and avahi-common libraries?

I have developed a C application that uses the avahi-client and avahi-common libraries.I need to do a cross-compilation of these libraries, so I downloaded the project source in github, https://...
0
votes
0answers
53 views

How faithful is fgetc, fputc, and gcc compile?

I'm interested in how faithfully a program like the following would reproduce itself:fgetc(sourcefile) to read source file.fputc(daughterfile) to write a new source file.gcc to compile the ...
1
vote
0answers
25 views

supervisord holds port after main program termination

I am spawning supervisord from a C program through system() in the foreground which starts 2 additional threads in the foreground.Normally if everything goes well this is not an issue, however if ...
3
votes
1answer
210 views

how to renew corrupted wchar.h

Tried to compile C++ code, but fails with:/usr/include/wchar.h:299:8 :: error: 'wchar_d' does not name a typeextern wchar_d *wcswcs (const wciar_t *__`aystack, gonct wchar_p *__needle)The file /...
0
votes
0answers
39 views

Cannot verify signatures using Atmel Cryptographic chip

I am trying to create a proof of concept using the AT88CK590 USB demo board. I am having an issue verifying signatures with the device. Basically, I can verify signatures created with the device, but ...
0
votes
0answers
93 views

Cannot connect to MQ remotely

I have a C program sample, which I use to connect to IBM MQ remotely. This is regular program sample from IBM AMQSCNXC.It always show the sane errorMQCONNX ended with reason code 2538the log ...
0
votes
1answer
84 views

Makefile is looking MQ library in wrong place on LINUX

In my makefile I have a line /usr/bin/gcc -m64 -DMQ_SEND /home/avalanche/oleg/src/ctm_mq_con_ex.o -o /home/avalanche/oleg/bin/ctm_mq_con_ex -LP/opt/mqm/lib64 -lmqm -lmqmcs -lmqmzse -lnsl -ldl ...
0
votes
0answers
14 views

My makefile for C IBM MQ has no errors, but doesn't cerate executable and object files

Below is my makefile on Linux:CC=/usr/bin/gccMQM_HOME=/opt/mqmCFLAGS=$(DEBUG) -O -Wall \-I$(MQM_HOME)/inc \-I/usr/include#IBM_LIBPATH=-L/usr/vacpp/libIBM_LIBS=-liconv...
0
votes
0answers
83 views

Unix / C: Surpassing root permissions as group

I have access to a folder as group (incl. password). There are 2 files: file & secret: These are the permissions:-rwsr-sr-x 1 root root 8.9K Apr 29 2016 file-r--r--r-- 1 root root 944 ...
42
votes
4answers
9k views

How do I install a Windows program (written in C) downloaded from GitHub?

I've downloaded a dead simple Windows program from GitHub (this if it's relevant). I downloaded it as a ZIP file, but I can't figure out how to install it. It's written in C, I think. Do I need a ...
0
votes
1answer
48 views

ls UNIX command : --

I was wondering what the -- in the options of ls stands forI am coding a ls myself in C and I need to implement it but I can't find what it is aboutAny help ? Thanks ❤
0
votes
1answer
62 views

Create a blackoverlay or disable monitor

Part of an exercise I am creating to use a PC without a monitor(By that I mean only using a keyboard and a mouse and by heart knowing which buttons to click) requires to somehow disable it and let the ...
1
vote
0answers
200 views

What is Linux From Scratch Project all about? [closed]

I am turning my attention towards the "Linux" Operating System Development. When queried, I found Linux From Scratch(LFS) is good to begin with.I downloaded the LFS book and started reading it.I am ...
0
votes
1answer
83 views

Keeping a process running in a linux machine

I wrote a server program for my company and now I'd like to keep it running on the ubuntu server.I was thinking of setting a cronjob to restart the entire system once a week (for security purposes, ...
0
votes
1answer
182 views

C program cannot open serial port on OS X when user is member of 'wheel'

I have a C program that opens a serial port. The code is not the issue here. When I run the program as sudo it works fine and opens the port. When I run it as myself (normal user) it fails to open the ...
4
votes
2answers
572 views

How do I grant access /dev/console to an executable?

I've written a small C app to utilize the internal PC's speaker. To achieve this, I'm talking to the /dev/console which in turn makes a beep sound from the speaker.However, my compiled executable ...
-1
votes
1answer
30 views

Do Linux bases operating system provide an API to check the amount of available RAM memory of the system? [closed]

Let's say that someone wants to write a program that takes a decision based on the amount of available RAM memory that system have.How can a C++ or JAVA program find out what is the amount of ...
1
vote
0answers
111 views

Keyboard layouts in ubuntu 14

I am using Ubuntu 14.04, Gnome fallback mode (compiz), the input sources in Text Entry are English and Russian.How can I get these layouts programmatically or at least in the console?I tried ...
1
vote
0answers
73 views

run C commands in bash script ubuntu

The author of this tutorial did a great job but failed to explain his use of printf here. It is not working for me. It is found at http://www.linuxjournal.com/content/bash-arraysI use #!/bin/sh...
1
vote
1answer
58 views

What means this code? [closed]

I cant understand .type and .func in this code.static struct packet_type ip_packet_type __read_mostly={.type=cpu_to_be16(ETH_P_IP),.func=ip_rcv,};This is referenced in: net/ipv4/af_inet....
0
votes
1answer
171 views

FFmpeg + mingw64: undefined reference to `sem_post'

I am having trouble building ffmpeg using mingw64 compiler. This is my configure: http://superuser.com/configure --prefix=/home/ytan/Dev/build-mingw/ffmpeg/ --enable-cross-compile --cross-prefix=x86_64-w64-mingw32- --...
0
votes
2answers
2k views

How to config YouCompleteMe for C language?

Recently, I installed YouCompleteMe and I'm new user in it. I read installation instructions from this link: http://valloric.github.io/YouCompleteMe. Now, I can use it for python and etc, but I can't ...
0
votes
0answers
28 views

Error installing inferno on Intel MBA

I'm trying to install Inferno(an operating system) on my MacBook Air (13-inch, Early 2015).Everything was OK until I hit the last step: mk install. Here is the error message:mk: no recipe to make '...
0
votes
3answers
117 views

IP address vs. LAN IP address

My modem has an IP address and an internal LAN IP address system.When I want to send something to my PC from a different location (with the function send()), is it possible to give this function ...
0
votes
1answer
188 views

Unknown option -pthread in LD

This is a follow up from this issue on Github.Basically, on OS X El Capitan, I get this message:ld: unknown option: -pthreadclang: error: linker command failed with exit code 1 (use -v to see ...
0
votes
1answer
32 views

libcurl version 7.21 to work on Redhat 6

I am having an issue with libcurl version 7.19 and socks proxy on redhat 6. I believe it was fixed in libcurl version 7.21 how do i upgrade libcurl on redhat 6 to 7.21 or greater?
1
vote
0answers
47 views

How can I recover my c drive after downloading SQL Server 2014 Express with Tools?

I downloaded SQL Server 2014 Express with Tools went through the entire process but the install file file kept running as if in a loop. I uninstalled the programs and affiliated drivers and now I keep ...
3
votes
0answers
256 views

how is envp argument passed to execve system call?

Suppose I callint execve(const char *filename, char *const argv[], char *const envp[])where I malloced memory for envp, then how does the program filename access the contents of that array when ...
4
votes
2answers
3k views

The “other” finger (GECOS fields at /etc/passwd)

in the file /etc/passwd we have the so called GECOS fields (which stands for "General Electric Comprehensive Operating System"), that is:username:password:userid:groupid:gecos:home-dir:shell Where ...
1
vote
1answer
94 views

openSSL Key and Certificate

As far I know, in an authenticated SSL connection, both the client and server have private keys and provide their certificates (with the corresponding public keys) across the connection before ...

153050per page