Category "c"

What is the use of the data type 'intp' in NumPy?

I've seen the data types in the NumPy package of Python, but I found the description of the data type 'intp' a bit confusing. Its description is like: intp: Int

Is there a kernel mode API that allows safe access to ntoskrnl.exe address space

I'm just playing around for fun only(on Windows 8.1) with kernel mode address space trying to see if I can access the address space belonging to ntoskrnl.exe fr

Bandwidth estimation : adding RTCP header extension - Gstreamer C

I am writing an application that uses Gstreamer to stream video between two clients. To do that, I wrote two codes in C that implement a sending pipeline and a

What is je_free function in libc.so?

Could somebody please explain me what is je_free function defined in libc.so and when is it called? Note1: while investigating one crash reported in our applica

Generate BackSpace event gtk/C

In GTK/C, I want to propagate the backspace keypress to a button clicked. Following the suggestion in this previous post, I tried with a small program: create a

how to find the dependencies of a source code?

Let say I have a simple c-library project, the layout is as follows - src/ - square_root.c - log.c - power.c - newton_method.c - include

How to detect non IEEE-754 float, and how to use them?

I'm writing classes for basic types, so that code is logically the same on multiple platforms and compilers (like int_least16_t for int). For fun! (I'm still a

Adding two double precision floats in assembly language in C on a Raspberry Pi 4 with 64 bit Linux

I am learning ARMV8 assembly language on my raspberry pi 4 and I want to know the simplest way that I can add two floats whilst choosing which registers I use t

What does this i386 os code mean? The code is for resetting the system

/* jump to reset vector. esp := 0 */ int main(int argc, char **argv) { PRINT("reset\n"); _eflags = 0; // interrupt disabled __asm__ __volatile__ ("\

cs50 filter(blur) assignment (pset4)

I am doing a cs50 assignment filter(blur). i didnt do it really well but it is working. bluring all the pixels except the first row(north) and the final row (so

Program to find number of elements between two elements a and b (where a and b both are inclusive)

Given an unsorted array of size n, write a program to find number of elements between two user-defined elements a and b (where a and b both are inclusive) of a

Clang compilation into sysroot with newer glibc

I'm trying to compile with a sysroot for Ubuntu 22.04 from a Ubuntu 20.04 image, and I'm having quite a bit of trouble, getting linker errors like these: /usr/b

How to exit console screen in C language

I'm trying to exit the console screen i.e close the screen what command can i use to achieve this. void main() { int n; printf("Please enter a number l

Converting an uint8_t[] to an IP address string [duplicate]

I am currently learning C. My ecosystem consists of an Espressif ESP-32 micro controller and Eclipse CDT IDE. I am trying to convert an uint

Is it possible to accelerate clang-tidy using ccache or similar?

Since employing ccache on our CI server, we find that the bottleneck in terms of build time is now our static analysis pass, that uses clang-tidy, among other t

Pipe with multiple child process

I want to create N processes from one parent and this child processes have to read that parent write, but what i have only the first process reads correctly: #

Arquivo make file para entrar em pastas [closed]

I have a MakeFile file in the following way: conf: cd teste nano teste However, when i execute make conf, he does not enter in the di

Why does calling lua_newuserdata result in SIGSEGV Segmentation Fault?

I'm trying to identify why a call to lua_newuserdata result in SIGSEGV. The gdb backtrace is : Thread 2 "main.o" received signal SIGSEGV, Segmentation fault. [S

How can I make a binary that uses openmp and compiled with intel's C compiler portable?

Normally I compile code (all in a single file main.c) with the intel oneapi command prompt like so icl.exe main.c -o binary_name I can then run binary_name.exe

Print the number 5 as a reverse pattern in C

C As you see in this code I'm trying to print the below pattern, Is the code is right to print the pattern cuz in my computer it show's wrong. //To print this t