python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
can't modify buffer from pointer to pointer in C
i'm trying to fill a buffer using read function. my code look like this:
int open_read_file(char *path, char **buffer)
{
struct stat statbuf;
int fd = open(path, O_RDONLY);
int fc = 0;
if (fd < 0)...
Grainbox
Votes: 0
Answers: 1
Changing a value of an index in a buffer array
so I am using requestly to modify the http responses
function modifyResponse(args) {
const {method, url, response, responseType, requestHeaders, requestData, responseJSON} = args;
console.log(resp...
anothernoob
Votes: 0
Answers: 1
How to copy and release a buffer in Gstreamer
I am working with the Python bindings for Gstreamer. I have a Buffer objects that I would like to copy and add to a queue so that it can be later processed by another thread.
My application has a memo...
user1315621
Votes: 0
Answers: 1
When reading from /dev/tty, what is happening in input and keyboard buffer?
I am playing with the following two code snippets
// Snippet1 in C
#include <stdio.h>
int main(){
FILE * fp = fopen("/dev/tty", "r");
int c = getc(fp);
printf(&...

Steve Lau
Votes: 0
Answers: 1