Simple C GUI library
Reddit » C Programming
by /u/DrFlower98
4h ago
I am trying to find the most simple GUI library for C, I heard of many but I want to know if much one is the best for creating GUI applications submitted by /u/DrFlower98 [visit reddit] [comments ..read more
Visit website
How to learn c programming for Linux (total beginner)
Reddit » C Programming
by /u/Kaldwick
4h ago
I've been wanting to switch my computer to Linux, just to get better with computers, and to see what I can customize. The problem is, that I don't know where to start. A lot of vocabulary gets thrown around (servers, distros, etc.), and I end up in a rabbit hole where I don't understand anything. Is there any online courses that start at a very beginner level, that help teach C programming, and that focus on using/switching to Linux? submitted by /u/Kaldwick [visit reddit] [comments ..read more
Visit website
Learning pointers
Reddit » C Programming
by /u/grimvian
9h ago
Started learning C two years ago and after the basics, pointers was the next the on list. Like most starters I also struggled with pointers in the beginning. My thought is that one first must have a good relation to hexadecimals. The next for me was a debugger e.g. CodeBlocks and single step through the code many, many times and see what goes right and wrong. And yes it takes time, but now I feel confident with pointers and memory management although I still learns every day. Now it's natural for me to use memory allocated structs as arguments to functions and all string handlings are done wi ..read more
Visit website
Clearing buffer
Reddit » C Programming
by /u/Trick-District2529
19h ago
Hi everyone, I'm losing my mind, and I know this is an incredibly basic question. What is the correct way to clear the stdin input buffer in C, particularly if you're not sure if the stdin input buffer is empty or not? I've tried a while loop with getchar, but the first call stops the program if stdin is already empty. I've tried feof, but for one it didn't work, and two I've heard it's bad practice. I'm currently using fflush(stdin), but I've heard that's also bad practice because it's technically undefined for input streams. I've tried ((fseek(stdin, 0, SEEK_END), ftell(stdin)) > 0), but ..read more
Visit website
Help with approaching programming questions/problems...
Reddit » C Programming
by /u/redskyfallblue
1d ago
I have issues with approaching programming questions/problems. I read the problem a few times, but I sometimes draw blanks with how I should solve the programming question/problem. Such as how many variables are required? how the logic should be? do I need loops? Most of the time when I go through paper coding then run it on a complier, it fails miserably. And then I see that I probably missed the logic completely or missed a whole chunk of necessary code. Or maybe I made it too unnecessary complicated, when it was something simple. Tl;dr I need some tips, advice, and suggestions on how to ap ..read more
Visit website
Recommended Android apps and websites for compiling C++ code
Reddit » C Programming
by /u/Dark_but_Good
1d ago
I want to get into coding as a hobby to make fuctional cosplay items using raspberry pi. Particularly Star Trek props like communicators that act like a smart watch that you can make calls from. I have an Android tablet that I would prefer to code from as my PC isn't in a good place to work on hardware to test code to see if it works at the same time, I know that there are Android apps and websites for compiling C++ code but as a beginer I don't know which of these are any good. I know that Gnu Compiler Collection is in the raspberry pi OS but I'm not yet sure how to conect it to my tablet ye ..read more
Visit website
Tips for a beginner moving to non-trivial programs
Reddit » C Programming
by /u/Separate_Implement_8
2d ago
I have read a couple of intro books and I feel like I have the basics down. Now, I’m itching to try and write longer, more complicated programs. Ideally, I was thinking of a Tiny BASIC interpreter and a VERY barebones text editor. Do you guys have any tips for transitioning from the beginner to intermediate level? Thanks in advance. submitted by /u/Separate_Implement_8 [visit reddit] [comments ..read more
Visit website
Format string vulnerability example
Reddit » C Programming
by /u/4lph4_b3t4
2d ago
Hi fellas, I am practicing my skills on buffer overflows and similar vulnerabilities on C language. I have the following program that replicates a format string vulnerability, where a buffer is placed on a printf function without a format string. Here is my example code: #include <stdio.h> #include <string.h> int main (int argc, char **argv) { char buf[80]; strcpy (buf, argv[1]); printf (buf); return 0; } Output: $ ./a.out 42 42 $ ./a.out "0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x" 0xffffd194 0xffffce38 0x080aee88 0x30257830 0x30207838 0x38302578 0x78302078 0x783 ..read more
Visit website
While loop continues even when its condition is false. im trying to understand why
Reddit » C Programming
by /u/Bruuuhh-_-
3d ago
im new to c and im looking to understand whats going on here. this is just a practice project to learn about c strings. at one point i literally had it printing its own condition and it would print 0 and keep going forever thought that print statement has been removed here. the code is for printing every combination of lowercase letters of a specified length or less i ended up using an if statement to check the statement again then manually break out of the while loop but according to my current understanding of while loops that shouldnt be needed. this code is probably extremely inefficient ..read more
Visit website
Issue with sending an image via socket
Reddit » C Programming
by /u/Hopeful_Rabbit_3729
3d ago
Hey guy's, I've been learning on c and trying to implement a HTTP server in C and i have issues with rendering an image in web browser so every time i try to access the image via server i get ` the image cannot be displayed because it contains an error' What am i doing wrong? Here is my github repo for the project link submitted by /u/Hopeful_Rabbit_3729 [visit reddit] [comments ..read more
Visit website

Follow Reddit » C Programming on FeedSpot

Continue with Google
Continue with Apple
OR