Click here to Skip to main content
15,880,608 members
Everything / Programming Languages / C

C

C

Great Reads

by Martin Mitáš
How to support scrolling within your controls.
by Espen Harlinn
Choosing the right synchronization mechanisms when working with threads, thread-pools, and I/O Completion ports to create high performance asynchronous servers in C++
by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
by Jeffrey Walton
Perform authenticated encryption with Crypto++.

Latest Articles

by Chris Boss
BASIC: A powerful language often underestimated and undervalued
by ColleagueRiley
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
by FPGANinja
A walkthrough and source code for designing a stream interface in Vitis HLS
by Alexey Shtykov
The thing that could generate pseudo random numbers faster than standard library does

All Articles

Sort by Score

C 

26 Feb 2018 by Martin Mitáš
How to support scrolling within your controls.
23 Mar 2021 by Espen Harlinn
Choosing the right synchronization mechanisms when working with threads, thread-pools, and I/O Completion ports to create high performance asynchronous servers in C++
7 Jun 2023 by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
23 Mar 2009 by Jeffrey Walton
Perform authenticated encryption with Crypto++.
6 Jan 2020 by The Ænema
This article will teach you how to create an amazing, clean and smooth WPF/Winform UI for your native application without using any complex, unsafe, ActiveXish methods, etc.
28 Jun 2023 by Dr. Song Li
This is a note on how compilers implement function calls to pass the parameters to and get the return value from the called functions.
13 Sep 2005 by Jecho Jekov
Provides an easy way to use C calling convention callback functions in C# and VB
2 Nov 2009 by csrss
A tool for loading device drivers
1 Nov 2017 by Jose A Pascoa
Rolling up a practical solution
27 Jul 2016 by raddevus
Steps for building a device you can add to your existing garage door, which implements an atmega328, bluetooth (hc-05) and relay module which will allow you to open your garage door from any paired Android device.
20 May 2018 by raddevus
Chapter 4 - Resistors and Resistance
12 Aug 2023 by Andy Allinger
Convert audio to image. (Edit the image.) Convert image to music.
8 Jan 2010 by Jimmanuel
Sorry, but no. Do your own homework. We can help if you have specific questions but don't expect full blown answers.The point of taking a class is to learn a subject; that's not going to happen if someone does all of the work for you. If you don't want to do the work then why take the class?
4 Apr 2019 by Andrew Kirillov
An open source application to acquire and process video from cameras
10 Sep 2010 by logicchild
An article that explains how to use this library
10 Sep 2018 by Kewin Rausch
Moving forward in the future networks evolution
25 Sep 2008 by Rajesh R Subramanian
Of all your questions I've attempted, this is the toughest one, Christian.First off, .NET and C++ (I will say only C++ in this message. But, When I say C++, include the frameworks and libraries built on and around it - MFC, ATL, WTL, etc.,) are...
27 Sep 2022 by Michael Sydney Balloni
Different languages and approaches are evaluated for a file and string processing benchmark
11 Jan 2023 by Andrea Simonassi
A simple yet powerful multiplication algorithm
8 Jan 2010 by CPallini
Sorry, we don't do your homework. Try yourself and ask here specific questions when you're in troubles. :)
3 Feb 2010 by ingvar8
Remote control based on c8051 with 433MHz radio modules.
18 Jan 2018 by Jan Dolinay
Source level debugger for Arduino with GDB and Eclipse
30 Jan 2017 by Michael Haephrati
Chrome stores all passwords and other credentials in an encrypted database but guess what: they can be retrieved by anyone with the proper knowledge. This article will show you how.
7 Mar 2010 by Luc Pattyn
This is an alternative to "Week Numbers According to ISO8601".
17 Sep 2017 by leon de boer
Introducing SmartStart something like a BIOS for the Pi
7 Nov 2019 by koolprasad2003
This article will give you a brief idea about what's new in C# 7.1, 7.2, 7.3, 8.
12 Mar 2022 by Bernhard Nebel
A tutorial for people who finally want to debug their Arduino projects that run on AVR MCUs using the GNU project debugger GDB
24 Dec 2018 by David Lafreniere
Unique allocator features improve performance and protect against heap fragmentation faults on any C or C++ project.
8 Aug 2006 by Jeff Glatt
An ActiveX Script Host with custom COM objects. This allows a script to call C functions in your app.
5 Oct 2017 by tugrulGtx
Multi-device OpenCL load balancer and pipeliner for C# in few lines of code.
5 Apr 2020 by Mircea Neacsu
An AWK interpreter converted to a C-callable library
3 Sep 2022 by honey the codewitch
Understand the difference between headers and source files, what they do, and how they work together.
8 Nov 2019 by Joel Ivory Johnson
An introduction to web assembly using the C/C++ language, part 1. In this part, I introduce web assembly, walk you through setting up the development tools, and go through a couple of introductory programs.
4 Jun 2023 by GeorgeDS
An anecdotal report describing issues encountered in coding a minimal perceptual hash capability, in plain old C, in to 35 year old rolling development, with the goal of running on a noob Win 10/11 installation.
5 Feb 2017 by Gregory Morse
UTM based on mov is Turing-complete paper x86 and x86-64
13 Nov 2017 by Elmue
This article describes how to use a Teensy 3.1 board from PJRC.com to simulate keyboard, mouse and touch screen USB HID devices at the same time. This allows to remote-control a computer through one USB cable.
5 Mar 2011 by CPallini
1) STR is a pointer to character(s), initialized with the constant character sequence {'h','e','l','l','o', \0'}. you may, in following statements of your program change its value, for instance: char c='a'; STR = &c;On the other hand, arr is an array of characters, initialized with the same...
19 Feb 2016 by pasztorpisti
An advice to make your DLL interface more attractive and easier-to-maintain even in cross-platform projects
3 Jul 2017 by Alexander Semjonov
Developing fastest FFT implementation based on precompile tool using data driven approach
14 Apr 2018 by Kewin Rausch
An introduction on how these applications self-defend themselves against scanning techniques, and how they could have evolved from simple and naive forms to more sophisticated ones.
17 Jan 2021 by David O'Neil
Everybody Loves the Mandelbrot Set! Here's a browser for it!
24 Jun 2018 by raddevus
Build this Arduino-driven device which incorporates a touch-screen and Bluetooth and you'll never have to type a password again.
18 Dec 2021 by Christ Kennedy
Distil hand-sanitizer and other social lubricants using an Arduino
30 Jan 2020 by fd9750
Overview of required tools to cross compile/build/remote debug C/C++ projects on a Windows host ( 10 ) for a Raspberry PI 3B
27 Aug 2008 by BadKarma
The Star Trek game reworked, using a 2D retro look
28 May 2010 by DecodedSolutions.co.uk
This is a simple article describing how to create an add an outlook appointment to your MS Outlook Calender.
13 Oct 2013 by Member 9294701
A simple, portable yet efficient Quicksort implementation in C
14 Aug 2013 by CPallini
You cannot have both conditions satisfied, that would defeat the very purpose of the if .. else construct.Of course we Klingons have a special licence for fouling the language neatness:#include using namespace std;int main(){ if (true) { cout
28 Mar 2014 by Alex Culea
Shows how to create a window that behaves like a context menu
11 Apr 2015 by Marc Clifton, Arthur Brock, Eric Harris-Braun
Semtrex is a semantic tree expression evaluator
18 Apr 2016 by Mircea Diaconescu, Gerd Wagner
Learn how to develop Arduino-based apps for the Web of Things (WoT). This second part of a series of tutorials shows how to read analog and digital sensors with the help of Arduino.
8 Mar 2017 by Eric D Schmidt
A crash course in working with the BeagleBone and its built-in A/D converter, GPIO, and I2C bus using C++
2 May 2017 by Arthur V. Ratz
This article is a practical guide on using Intel® Threading Building Blocks (TBB) and OpenMP libraries for C++ based on the example of delivering parallel scalable code that implements Burrows-Wheeler Transformation (BWT) algorithm.
1 Aug 2018 by Member 13737597
This article show the structure of import library file (.lib) used along with header to link against DLL
29 Jan 2019 by David Lafreniere
Simplify passing data between threads with this portable C language callback library.
15 Aug 2019 by SimbirSoft
C++: love and intrigue
10 May 2021 by Steffen Ploetz
Check whether ReactOS is able to run OpenGL, determine a convincing IDE and get started with the OpenGL on ReactOS.
30 Oct 2020 by honey the codewitch
Using this cheap, powerful little device to make magic
7 Oct 2021 by Mircea Neacsu
Source code organization suggestion
30 Jan 2017 by Michael Haephrati
Way to fetch stored credentials in more recent versions of Firefox
25 Jul 2012 by pasztorpisti
How to open a console in a non-console C/C++ application or DLL and make printf/scanf work (stdin/stdout/stderr related functions)
13 Jun 2012 by lewax00
Well let's start with the most obvious problem, you opened it in a text editor. The text editor assumes anything you want opened in it is text, and is therefore showing you the equivalent text of the executable.EVERY file on your computer is in 1's and 0's. All the time. It's how computers...
11 Jan 2015 by SarmadAsghar
Building on My SQL Storage Engines and APIs to Conduct Complex Analysis Using SQL Query Language: Part 5
30 Mar 2015 by Eugene Sadovoi
Integrating third party tools and libraries into Visual Studio (MSBuild) configuration environment.
3 May 2016 by Mircea Diaconescu, Gerd Wagner
In this multi-part tutorial we show how to develop Arduino-based apps for the Web of Things (WoT). This third part shows how to set up a connection between an Arduino and the Internet via a WiFi network and use HTTP(S) to send data to a free cloud service like ThingSpeak.
18 Jan 2017 by leon de boer
Third in the series of frustrations and adventures with the Raspberry Pi
8 Jun 2017 by David A. Gray
Historically, ETW has been portrayed as having a very steep learning curve, along the lines of the effort required to summit Everest. Realizing its potential value, I set about to reduce the effort to that required to summit Pike's Peak.
15 Oct 2017 by Kewin Rausch
Design and development of a TOR-like protocol to keep your communication secure and your identity unknown
10 May 2018 by Member 13737597
This article shows how to enter vga text mode and return from it on Windows 7
23 Jan 2020 by Steffen Ploetz
Another fully functional ownerdraw menu with minimal effort - this time based on Win32, with icons instead of bitmaps, with accelerators and tested for ReactOS and WinNT 4.0 to Windows 10
2 Jan 2022 by David Lafreniere
A portable C language socket-based software transport protocol library for any hardware communication interface on any platform
30 Nov 2010 by C_Johnson
Hi Ahmed,I was going to try and give you are concise answer but I'm limited for time so I apologise. I've been using EMGU for several years now and I've looked into Haar Classifiers extensively. I intend to write an article at some point. There is a lot out there on Haar classifiers but a...
9 Feb 2011 by User 7429338
Despite of the high votes on Prerak Patel's answer, you can not use mkdir to create a folder under My Computer; My Computer is not a conventional folder.To add something to My Computer, you have to make a Shell Folder. Have a look at my answer here[^] for an example.To implement this in...
18 Jul 2011 by Sergey Alexandrovich Kryukov
You can do it: int * p2 = reinterpret_cast(0x22fefc);//C-style cast:int * p1 = (int*)0x22fefc;//easy to check-up: p1==p2, but de-referencing them could be a problem :-)The result depends on the platform. On most modern platforms is would looks like some random...
11 Oct 2012 by CPallini
You may use only a static class member function as (third) argument to CreateThread (see ThreadProc callback function[^]).If you need to access class instance members from the thread routine the you may pass object's this pointer as thread function parameter.[UPDATE]change your function...
17 Jan 2014 by OriginalGriff
Wow! That's a big question...You've been using computer since '03, so at a guess you're twenty-something. So we can assume you want "real" programming rather than something for kids. That both makes it easier, and harder - easier because we can ignore LOGO and getting stupid turtles to draw...
11 Apr 2016 by Martin Mitáš
Direct2D or GDI+? Perhaps both, with a help of the right library.
7 Jun 2016 by GProssliner
cobj is a preprocessor based generator for interface based polymorphism
1 May 2017 by Arthur V. Ratz
This tip/trick introduces the basic ideas on how to avoid memory mismatched allocation/deallocation issues detected by Intel® Inspector XE for Visual Studio 2015
21 Nov 2017 by Shmuel Safonov
Using Bison/Flex for creation of the code convertor from subset of MATLAB language to C code. The converter is used for building native applications and libraries from MATLAB code.
7 Aug 2018 by CPallini
This article describes one of my experiments: a temperature control system for a cartoon box.
23 Apr 2019 by Member 13737597
This article shows how to automatically catch memory access (read /write) for some memory region and log these changes into file
14 Dec 2019 by Alexandre Bencz
With this new OrangeC/C++ compiler back-end, you can compile your C code to .NET.
23 Dec 2021 by David MacDermot
This article describes adding checkboxes to the standard combobox and listbox control.
13 Aug 2009 by Stuart Dootson
The way I'd approach it is like this:1. Define functions that return random voewls and random consonants - here's a random vowel function:char RandomVowel(){ const char vowels[] = {'a', 'e', 'i', 'o', 'u'}; // Use rand() to get a number...
12 Oct 2009 by Jörgen Sigvardsson
In addition to what Stuart said, if you really don't want to change the function signature from floatto double, you can always use literals that are typed as float. If you add the suffix f to the floating point numbers, they will be typed float.Your examples would then be function(1.2f, 2f) and func
2 Dec 2010 by User 7429338
That's sort of assembly code within a C program. The assignments are to store values in the processor registers and then call interrupt 0x10.Interrupt 0x10 with the value 2 in register AH means to set the cursor position.Register BH is the screen page (0 means the visible screen) and...
24 May 2011 by Sandeep Mewara
oh ___ hell .you don't need me to give lecture on what you are talking about. i dont have time for it.. need help thats why i posted it here its 3.30am here and at 7 i have to present it:doh: Great attitude. You fail to complete your work in time.You come here for help and when someone...
1 Aug 2011 by ThatsAlok
Describing various method to zeroing the buffer in memory
23 Jun 2015 by Jan Dolinay
Article on setting up Eclipse to build programs for Arduino Uno.
1 Apr 2016 by Nagaraj Krishnamurthy
This article goes into the details of how to write a Linux Device Driver for a pseudo Ethernet device simulated on a Qemu platform.
4 Feb 2019 by Igor Ladnik
Compact infrastructure for custom hosting of .NET Core component in unmanaged C/C++ code with reciprocal methods calls between the parts running in Windows and Linux. Section Threads and Processes
8 Jan 2021 by Iman Abdollahzadeh
TrueType implementation from scratch
23 Aug 2021 by umar.techBOY
A hardware-based random number generator that exploits the line capacitance and natural frequency of the circuitry of a micro controller to generate a truly random number.
12 Mar 2023 by Mike Hankey
A look at the STM32 Timer peripheral
10 Apr 2023 by Tough Developer
How to open 16-bit Win apps natively on 64-bit Windows using OTVDM/winevdm
31 May 2019 by Rick Lunglhofer
Details the Implementation and use of a C Language Interpreter with a browser Interface running on an ESP32
15 Nov 2023 by honey the codewitch
Generate tight C code to match text based on regular expressions
28 Feb 2024 by Chris Boss
BASIC: A powerful language often underestimated and undervalued