C Board Forum » C Programming
1,571 FOLLOWERS
C Board is a place to ask questions related to game programming, C programming, C++, C#, Linux programming, and more. Discuss your doubts or problems that you face while working with C and get them answered here in this category.
C Board Forum » C Programming
13h ago
Do you analyze the map file in software development, especially when using the GCC compiler? If yes, what are the important aspects you examine in the map file ..read more
C Board Forum » C Programming
5d ago
Hi,
I'm trying to create a simple ping routine, that can be used in other programs to test internet connectivity. I'm stuck, as the following code seems to send the request, but `recvfrom` blocks forever.
Since I don't normally deal with sockets like this, I'm completely lost as to what is wrong. And I don't think I can look at more code that doesn't satisfy my need.
Here's what I have:
Code:
// Declare includes.
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <netinet/in.h>
#include <netinet/ip_icmp.h>
#include ..read more
C Board Forum » C Programming
2w ago
Hello, i tried ncurses and touchpad clicks from an ASUS laptop with Msys2 installed.
It seems that ncurses for Windows do not support touchpad.
How can i catch touchpad-mouse clicks for ncurses in windows ?
I tried midnight commander on Windows and it support my touchpad, how does it do it ?
Thanks in advance for your replies...
DimK ..read more
C Board Forum » C Programming
1M ago
Hi everyone,
I'm learning about how computer memory works in C programming. Can you share how you figure out where things go in memory when you write C code?
What tools or methods do you use to understand this?
Thanks for your help ..read more
C Board Forum » C Programming
1M ago
I'm not sure I really get the difference between NULL, (void *)0 and (char *)0.
According to the C standard:
Quote:
An integer constant expression with the value 0, or such an expression cast to type
void *, is called a null pointer constant.
Quote:
The macros are
NULL
which expands to an implementation-defined null pointer constant; and
So does that mean that those values can be used on pointers of any type? For example, are these valid null pointers?:
Code:
#include <stdio.h>
struct book {
char title[25];
char author[25];
};
int main(void) {
  ..read more
C Board Forum » C Programming
1M ago
Is there a way to write strcat(p,q); using pointers ..read more
C Board Forum » C Programming
1M ago
Everyone,
I wrote this trivial program in minutes to see how well it would come out. I produces the correct answers. But I don't know how to plug the memory leak Splint found. Would you please tell me how to solve the problem.
If you think I caught OCD, you're. right. I'd hate to hear Splint complain about anything. That's why I assign function values to integer variables when most programmers wouldn't do that.
Code:
#define MAXNUMS 30#include <stdio.h>
#include <string.h>
#include <stdbool.h>
static bool between(const unsigned int low, const unsigned int high, co ..read more
C Board Forum » C Programming
1M ago
Does anybody have any advice for embedding png files using gtk? I used xxd to convert all the .png images into .h files, but I can't get them to show up right with gdk_pixbuf_new_from_data ..read more
C Board Forum » C Programming
1M ago
Is there a way to write strcat(p,q); using pointers ..read more