I am working on an STM32F407 Discovery Board. But I didn't solve my clock configuration problem. I want to 168 MHz working frequency and I get help from CubeMX
I'm testing a network program that sends packet to a remote server using UDP/TCP, and for that, I want to generate some random byte streams. Here's the functio
I could not find something like OFF_MAX that would tell me the maximum allowed value for off_t so I wonder if I could perhaps use that: #define OFF_MAX ~((off_
I'm looking for an approximation of the natural exponential function operating on SSE element. Namely - __m128 exp( __m128 x ). I have an implementation whic
Here is the question: Write a solution that only iterates over the string once and uses O(1) additional memory, since this is what you would be asked to do duri
I am trying to write code that wraps a C library in python. I am planning on using CTypes to do it and I used visual studio to compile my DLL. I started with a
I am just creating a basic file handling program. the code is this: #include <stdio.h> int main() { FILE *p; p=fopen("D:\\TENLINES.TXT","r"); if(p==0) {
I cannot find any reference on how to pair a bluetooth device on linux in a program written in C using the BlueZ Bluetooth libraries. I already managed to do a
How to get a list of child process ID's from a given parent process ID in a cross-platform manner in C and C++ without using command line? I provided an answer
I know that is a simple question but I couldn't find the answer. I have this string: "M1[r2][r3]" I want to get only the "M1", I'm looking for something li
How do I calculate a power in C, and do you have to include anything? I have tried to include math.h, however it didn't work. What is de difference between a in
i am currently trying to make a programm which will print the sentece "What a wonderful world" using three threads. The first thread should print "What A" , the
I took a class of programming at my university and I am working on some program. I want to know if it is possible to program my own kbhit() function. And if it
I've written a function trailing_zeroes(int n) that returns the number of the trailing zeroes in the binary representation of a number. Example: 4 in binary is
In unix/linux world, there are a couple of different C Standard Library implementations to choose from and link against, but although I spent some time searchin
I've been doing some programming in Java and some in C but now I need to sort of use both together. Here's the situation, I'm using Hadoop/Hbase to process and
How can I return a JavaScript string from a WebAssembly function? https://dev.to/azure/passing-strings-from-c-to-javascript-in-web-assembly-1p01 - not working
I know how to use events to test when a key is pressed or not, but in C I never found out how to do that. What I want exactly is a "KeyListener" that listens fo
I am defining a custom typedef Elements as follows.... typedef enum { Ar, Cl, F, He, H, Kr, Ne, N, O, Rn, Xe } Ele
I am working with Ubuntu 19.04 (Disco Dingo), and I have GCC installed. When I run gcc I am getting an error showing that I do have gcc: gcc: fatal error