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.

1
vote
0answers
24 views

How to debug program creating RAW socket?

For example I have this program:int main(){int sockfd=::socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);if ( sockfd==-1 )printf("Error\n");elseprintf("Success\n");return 0;}...
1
vote
0answers
13 views

Command Prompt settings won't save

I've tried running as admin and setting both Defaults' and Properties' window sizes. upon re-opening cmd the window is small again even though Default settings are still set right.Also tried ...
0
votes
1answer
56 views

ffmpeg Remap Filter is not scaling for me

I'm still new to all the stack exchange sites, so if I'm not asking this in the right place, feel free to point me in the correct direction.Link to the filter I'm using: https://trac.ffmpeg.org/wiki/...
3
votes
1answer
617 views

VMWare Workstation vmmon broken on Ubuntu 18.04

I upgraded to Ubuntu 18.04 and the vmmon.ko module for VMWare Workstation 12.5.9 now fails to build. /usr/lib/vmware/modules/source/vmmon-only/linux/driver.c: In function ‘LinuxDriverInitTSCkHz’:/...
0
votes
2answers
89 views

Setuid and setgid not working

I'm having a problem with setuid and setgid. I've written this C code:int main() {setuid(0);setgid(0);system("/path/to/script.sh");return 0;}Compiled it using gcc:gcc test.c ...
0
votes
1answer
61 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
2answers
89 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
80 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
62 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
134 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
41 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
96 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
77 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
66 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
28 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
654 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
329 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
119 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
39 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
39 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
66 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
194 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
95 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
35 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
133 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
233 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
59 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
218 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
1answer
101 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 ...

153050per page