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.

learn more… | top users | synonyms

-2
votes
0answers
8 views

Cannot play mpg file in android [on hold]

I want to play .mpg file from MediaPlayer in android. But I am not able to play. This is my code. File file = new File("abc.mpg"); MediaPlayer mp = MediaPlayer.create(MainActivity.this, ...
0
votes
0answers
15 views

How to overlay mp3 files using ffmpeg on android [on hold]

I want to overlay 2 mp3 files in android. I am using following ffmpeg command ffmpeg -i abc.mp3 -i def.mp3 -filter_complex amix=inputs=2:duration=first:dropout_transition=3 result.mp3 -y But I am ...
-4
votes
1answer
33 views

I Accidentally Changed .C Files [closed]

I was trying to edit a .C file, but I accidentally chose to open it with Notepad. I am now having trouble finding the default program to open it with. I was wondering if any of you could help me find ...
-1
votes
0answers
24 views

FFmpeg command taking long time [closed]

I am using following ffmpeg command to lower volume at particular duration but it takes around 20-30 seconds. How to speed it ffmpeg-0 -i abc.mp3 -af "volume=enable='between(t,5,10)':volume=0.15, ...
-3
votes
3answers
36 views

Extract text from every three lines using Windows

I have a HUGE text file with details of my site users. (11GB+). It's built like that: Email: example@gmail.com Address: 1blahblahblahblah (Bitcoin Address). Password: blahblahblah Each of the ...
0
votes
0answers
17 views

how to download and install outdated linux-headers

I just watched the issue concerning how to add additional driver (module) into pre-compiled kernel; I tried to install the linux-headers but in the current repository I could find that all the ...
0
votes
0answers
5 views

How can I know if SNMP Walk or a Table-View is started?

Hello how can I know if a User has "sent" a SNMP-Walk or a TABLE-VIEW request to a device with UCD-SNMP/NET-SNMP and custom coding?
0
votes
0answers
21 views

How to force only Chrome to send network traffic through selected IP interface (not system default) on Windows 7?

I have connected to multiple network interface (like LAN, WiFi, USB modem, VPN) and I want Chrome to use the DNS servers from selected network (BUT NOT SYSTEM DEFAULT means local network) and also ...
0
votes
0answers
8 views

Netbeans 8.0.2 will not compile code [migrated]

I have a problem with my Netbeans, not compiling any kind of Code for example: #include <stdio.h> #include <stdlib.h> /* * */ int main(int argc, char** argv) { printf("hello ...
1
vote
2answers
46 views

Copying Unix Executable File content from file to file

I am simply experimenting but have found a phenomena that I would be very appreciative if someone could try to explain. I write a simple Hello World program in C. Use gcc to compile this program into ...
1
vote
3answers
72 views

How to keep the terminal open after executing a C program?

I'm trying to run a C program from within a python code. cmd = 'gnome-terminal --command=./myprog' subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) The code executes and the terminal ...
1
vote
0answers
46 views

make a c program run without opening a cmd window [closed]

how can i make a c program run without opening a CMD window, i tried -mwindows flag, used WinMain Entry instead of main, but without results, the cmd still pop up. i tried ShowWindow function by ...
0
votes
1answer
74 views

How to change the default terminal beep frequency of the PC speaker?

I want to change the default sound frequency ofSND_BELL(which is used when\aor BEL or ^G is printed on the screen) to higher values (the current default is around 750Hz). Of course this turn to need a ...
0
votes
0answers
16 views

How to measure the latence time of each level of cache memory [closed]

I want to measure the size of each cache memory level (L1, L2, L3) and its latency time. I am using a C program that takes 3 parameters: the size of an arrays that will be read, the number of times to ...
0
votes
0answers
13 views

Can a subprocess launched from a parent executable access the memory of its parent?

Given a system() call with user controlled input, is it possible to read the virtual memory of the parent program? Assume that the system call is made with dropped privileges, and that running ...
-1
votes
2answers
135 views

Program built with MVS2012 “missing MSVCR120D.dll”

I started programming on Visual Studio Express 2012 instead of Code::Blocks, which is way more beautiful, but now I have a HUGE problem: My goal is to release a free OpenSource project with plenty of ...
0
votes
0answers
15 views

How to prevent GNU indent from breaking initialization assignment like “= { 0 };”

See following example. $ indent --version GNU indent 2.2.10 $ cat foo.c void foo() { struct { int a; int b; } v = { 0 }; } $ indent -st foo.c void foo () { struct { ...
-3
votes
1answer
42 views

“cannot open port!” in a DLL project [closed]

I made a C Console Application in Visual Studio in order to access one of the COM ports with the following code and all went well. #include <windows.h> #include <stdio.h> #include ...
0
votes
0answers
64 views

How to send COOKIE, PHPSESSID from my own webserver to php5-cgi script to execute PHP pages

I am developing a Webserver in C. I know how to pass environment variables to ph5-cgi, eg: putenv("QUERY_STRING="); putenv("REQUEST_METHOD=GET"); putenv("REDIRECT_STATUS=true"); ...
-3
votes
1answer
35 views

i have three laptops with HD:500gb ,ram:4gb,OS:windows7 is it possible to form a cluster? If notwhy and How can I able to make use of cluster? [closed]

with HD:500gb , ram:4gb , OS:windows7 is it possible to form a cluster? If not why(i need more laptop or something) and How can I able to make use of cluster?
0
votes
1answer
63 views

Which GUI framework is used to make Ubuntu?

I'm interested to know, Which GUI framework is used to build ubuntu? As well i know it is built in C/C++. But what GUI is used to make Ubuntu? Help would be appreciated!
1
vote
1answer
26 views

How do I install programming info pages in Mac OS X?

I used to have a Linux system i was able to type info libc to view info pages on the C library, including unix functions. However, now I am running Mac OS X this does not work. How do I install the ...
0
votes
1answer
23 views

Linux C Compiler

I've just tried to install APCUPSD and have run into a missing C compiler error. I then ran yum install compat-gcc-34-g77 which went fine but the error did not go away, I tried which gcc as well ...
0
votes
2answers
3k views

username is not in the sudoers file. This incident will be reported

I am running ubuntu 12.04 on my laptop using VMware Player. I am not sure why but I have an account called "User Account" in addition to my account that I usually login to use ubuntu. Well that was ...
-1
votes
3answers
97 views

why 0(Zero) is treated as positive sign?

Can I know, In signed int or In Binary digit Zero is treated as positive sign and 1 is treated as negative sign. For example :- 1000 0000 0000 0110 = -6 0000 0000 0000 0110 = 6 But ...
0
votes
1answer
97 views

How to delete a particular line in a text file after some operation on that text file at the same time

I am perl bginner (but i guess logic is same for all programming languages like C++ and C in my case its perl). What i want to achieve ? I have a text file i read that file which contains different ...
2
votes
2answers
264 views

How to remove password of PDF with known password? [duplicate]

I have a personal PDF that I would like to remove the password for because the password was my old phone number (which I may forget). How can this be done? Maybe relevant that the PDF contains form ...
1
vote
1answer
135 views

Geany comment block format

I'm trying to figure out where the comment block style is defined in Geany for C files. By this I mean when I select a block of text and hit ctrl-e, each line in the block of text is pre-pended (at ...
1
vote
0answers
25 views

Access remotely two computers via IPv6 [closed]

I have a little problem on my house. Recently, I installed Teredo on two computers using sudo apt-get install miredo. Now I can access my two computer via IPv6 using Sockets in C. My goal is: I am a ...
0
votes
0answers
45 views

Link asm bootloader with c file

first of all I'm sorry if I put this post in a wrong category, but I'm new here... Recently I tried to make own, simple "OS". Maybe it's not an appropriate word for that, because my target was just ...
0
votes
1answer
95 views

Unable to compile GTK+ application

I'm trying to compile a simple GTK app for testing on a Trisquel 7 machine. The packages are derived from Ubuntu 14.04 LTS. I have libgtk2.0-dev installed, but when I try to compile, this is the ...
2
votes
1answer
39 views

Running native applications on the Linux Kernel

When the Linux kernel has loaded it loads the distro or OS to take over, how can I make the kernel load some native application (written in c) instead? I don't need a GUI or anything, Instead I want ...
0
votes
1answer
45 views

How can I know whether a binary file is an executable or a library?

I have a binary file, but how can know the file type, lib or exe. By opening it with notepad++, it shows ELF and a lot of random symbols.
0
votes
1answer
315 views

Windows : How to protect process from getting killed in C/C++ [closed]

Is there any "GODLY" method through which i can protect my process from getting killed either from: 1>Task manager 2>Command prompt -- forcefully kill Things i tried : 1. Hooking Open Process and ...
-3
votes
1answer
97 views

How to create a local server to compile and run programs in C, Java,..etc [closed]

How can I create a local server on my Ubuntu laptop which is able to compile and run C, Java, Ruby, Python, etc code? And I want to use that service from my tablet through WiFi.
2
votes
0answers
53 views

C/C++ functions tag for Geany [closed]

I want to generate the C/C++ functions tag for Geany like those that included in the archive, how I can do that. I want to get auto completion when entering a functions name. Thanks in advance for any ...
0
votes
0answers
32 views

Idea for triggering after incoming job for cups

i want to trigger an event after my CUPS gets a new printjob. Background: i use a RaspPI as printing service with an usb plugged printer. This printer is always powered on and hasn't any eco mode. ...
0
votes
1answer
34 views

Executing a c operating system inside VMWorkstation [closed]

I am planning on starting development a small, simple operating system, however I am unsure about a starting point.Would running the code inside a VM without a OS in it be the best approach at ...
0
votes
0answers
40 views

Message queue doesn't exists any more after reboot/shutdown of the virtual machine (Ubuntu)

I'm working on a simple multithread client/server program in C using native message queue of unix to send messages from one client to another. It works fine, but my problem is that after a reboot or ...
0
votes
1answer
161 views

What is the difference between copy and paste a file using command line terminal and GUI copy paste?

What is the difference between copy and paste a file using command line terminal and GUI copy paste ? Which one is fast ? I think both are same because of same program will execute in background . ...
0
votes
1answer
29 views

Is there any difference in the view of process & sub process between command “/bin/sh -c ls /” and sh temp.sh(containing one line ls / only)?

What is the difference between the above ways of executing command and the code below? #include int main ( ) { int return_value; return_value = system ( "ls /" ); return return_value; }
0
votes
0answers
17 views

Modbus Communication not Working

https://code.google.com/p/stm32modbus/source/browse/#svn%2Ftrunk%2F%20stm32modbus%20--username%20ickingdom%40gmail.com%253Fstate%253Dclosed I have debug and compile this program successfully but ...
0
votes
0answers
76 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
2answers
150 views

How to execute a compiled C program in Linux terminal

#include<stdio.h> main() { int a,b,c; printf("enter the value of a and b for addition:\n"); scanf("%d %d",&a,&b); c=a+b; printf("Addition of ...
1
vote
2answers
169 views

Full screen mode not working for tc

I am using a windows 7 os. I am assigned by my instructor to write a C program to draw a circle. I was asked to do it using turbo c. Now, I have installed tc from an old cd of mine. When I open my ...
0
votes
1answer
67 views

Vim inserting C style comments

:command Linecomment :normal ^i/*<ESC>$a*/<ESC> The above command is one that I came up with in order to comment out an entire line in C, normally for debugging purposes and whatnot. I ...
0
votes
1answer
48 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
1answer
509 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: ...
1
vote
1answer
151 views

Cannot compile C programs after deleting libc.a and libc.so

I removed libc.a and libc.so files from my Raspberry Pi. I read somewhere that it was going to fix a problem i had with the mpi.h library, but instead of that it has prevented me from compiling C ...