Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / Languages / C

C

C

Great Reads

by KarstenK
Some toughts whether to prefer Objective-C or Swift.
by Bartlomiej Filipek
Include Guards, Pragma Once, Predeclarations and other hints that might be useful when dealing with includes.
by Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
by Cindy Potvin
Many options of the .LESS CSS parser can be set directly from the Web.config file, but many of them are not clearly described. Here is my attempt to document them.

Latest Articles

by KarstenK
Some toughts whether to prefer Objective-C or Swift.
by Bartlomiej Filipek
Include Guards, Pragma Once, Predeclarations and other hints that might be useful when dealing with includes.
by Sergeant Kolja
This is an alternative for "Memory leak detection for WinCE".
by Cindy Potvin
Many options of the .LESS CSS parser can be set directly from the Web.config file, but many of them are not clearly described. Here is my attempt to document them.

All Articles

Sort by Score

C 

by Bartlomiej Filipek
Include Guards, Pragma Once, Predeclarations and other hints that might be useful when dealing with includes.
by Cindy Potvin
Many options of the .LESS CSS parser can be set directly from the Web.config file, but many of them are not clearly described. Here is my attempt to document them.
by NSProgrammer
A better NSData description
by li9705
A simple opengl example of Android using cle
by NSProgrammer
Anatomy of a Singleton.
by Mircea Diaconescu, Gerd Wagner
Three easy ways to programmatically reboot/reset an Arduino MCU.
by johnniealan
Auto Login in TI-SDK, Am335x
by Mario Vernari
This post follows my first one on Internet-of-Things telemetry project based on Azure.
by Chris Boss
BASIC: A powerful language often underestimated and undervalued
by Mohammad Elsheimy
Which is better, to use BeginPaint/EndPaint, or to use GetDC/ReleaseDC?
by NSProgrammer
Better reference counting.
by Ben Liebert
Bridging the client-server boundary – an experiment in architectures for next-generation web applications
by Ali BaderEddin
Interesting/weird usage of pointers in C
by Issam Lahlali
C vs C++: Linux analysis case
by Pragmateek
Keep reading and in 10 minutes you’ll know DllImport (almost) like a pro.
by Barry Lapthorn
Python interop in C/C++.
by Issam Lahlali
In this article, we will discover the power of Clang's design that can help you to develop many kinds of tools.
by grilialex
COFILOS SD Card Driver
by pi19404
Color constancy is a mechanism of detection of color independent of light source. The light source many introduce color casts in captured digital images To solve the color constancy problem a standard method is to estimate the color of the prevailing light
by Minh Danh Nguyen (ToughDev)
How to convert between NSString and C strings in iOS project
by Mohammad Elsheimy
Convert colors to gray shades, detect Print Preview mode, and detect Black-and-White printers
by Eric Z (Jing)
How to create many-to-one mapping in C
by Rion Williams
How to debug deeper through reference source
by Minh Danh Nguyen (ToughDev)
How to develop PC-speaker MIDI player for IBM PC XT
by Ali BaderEddin
Implementing a three dimensional array dynamically in C, C++, C# and Java
by hudku
Essential macros for C programming
by Pragmateek
Essential tools for debugging and troubleshooting.
by Minh Danh Nguyen (ToughDev)
Retro68 GCC-based SDK for 68K Mac
by matthewproctor
This article demonstrates how to use Lync as an endpoint for monitoring hardware and devices - in this instance the Gadgeteer Fez Spider board with a Gas Sensor.
by User 1556233
A user friendly dateformatter in objective C
by ericevenchick
Let's look at the components involved in microcontrollers and see how they work.
by Bartlomiej Filipek
glGenerateMipmap Plus SOIL library
by Perjan
How to pass values to UILabel objects in iOS 6 Storyboard
by Perjan
A quick tip that will show you how to show hide Navigation Bar when tap in iOS occurs
by MobileAppMastery
Here is how to use UIPasteBoard to implement custom copy and paste in your app
by MobileAppMastery
This video will show you how to implement this in your own iPhone app.
by XPG Live
Use leaderboards on iOS (iPhone/iPad) with XPG
by Mircea Diaconescu, Gerd Wagner
Learn how to identifying the Arduino microcontroller type by simply using C/C++ code.
by Mark Vinod Sinnathamby
Installing MINIX 3 on QEMU/KVM with networking
by Chris Demiris
Instantiate Storyboard view controllers manually.
by Minh Danh Nguyen (ToughDev)
How to integrate FatFs FAT filesystem module with CH375/CH376 USB controller
by Madhur Kapoor
Introduction to Swift
by User 1556233
Sending an email from your iPhone application is something which you normally want to do it asynchronously. But unfortunately, prior to iPhone 3.0, the only way to send email was using mailto:// url format. i.e, [[UIApplication sharedApplication] openURL: @"mailto:john.appleseed@appl
by Mircea Diaconescu, Gerd Wagner
As opposed to the less powerful Arduino, the competitively priced and WiFi-enabled ESP8266 supports the Web-of-Things (WoT) since it can be programmed in JavaScript.
by Issam Lahlali
In this post, you will learn basic "C" coding rules from open source projects
by Issam Lahlali
In this post, Hibernate Core is analyzed by JArchitect to go deep inside its design and implementation.
by Colin Eberhardt
Creating a LINQ-style API for Objective-C has proven to be relatively simple (and fun!). I have provided implementations for some of the most common and useful LINQ methods, however the .NET LINQ APIs for querying collections have a great many more methods than the ones I have covered.
by Mohammad Elsheimy
Introduction to marshaling
by Mohammad Elsheimy
Learn how to marshal simple types (integers, strings, etc.) in C#.
by Mohammad Elsheimy
Learn how to marshal compound types (structures, unions, etc.) in C#.
by Adnan Boz
In this blog post, I’m diving deeper into Thrust usage scenarios with a simple implementation of Monte Carlo Simulation.
by NSProgrammer
About method swizzling
by Issam Lahlali
Motivations of choosing C: Git case study
by Edison Heng
Networking and Socket programming tutorial in C.
by Afzaal Ahmad Zeeshan
New developers and the importance of C; this blog post is about my opinion and views about C programming language's importance for beginners in programming. Yours might be different!
by Minh Danh Nguyen (ToughDev)
How to open 16-bit Win apps natively on 64-bit Windows using OTVDM/winevdm
by Ali BaderEddin
How to change the camera view in an OpenGL application
by Ali BaderEddin
An attempt to understand the internal logic of drawing and coloring lines in a graphics library.
by Ali BaderEddin
How to draw an oval using lines or fill it using triangles?
by Ali BaderEddin
Make drawing text in your OpenGL app as simple as calling printf
by Pragmateek
Introduction If you've already developed COM APIs with .Net, typically in C# with VBA as the consuming language, you've probably leveraged two powerful features: by-reference parameter passing that allows the API to change the input object itself, not only its ... Continue reading ...
by Anna-Jayne Metcalfe
A .lnt file is an "indirect file", which is simply a collection of PC-lint directives.
by Minh Danh Nguyen (ToughDev)
How to play the classic MS-DOS game - Alley Cat - from your browser
by RCL_SPD
Please have a C API for your library
by Mircea Diaconescu, Gerd Wagner
Home Automation is made simple for everyone, with the industrial grade PRODINo ESP8266 based module. It can be programmed with the Arduino IDE and allows to control (ON/OFF switch) mains (110-240 VAC) powered devices such as light bulbs, water pumps, cafe machines or garage doors.
by rtybase
Why "i = i++" expression returns different results in C++ and Java/.NET?
by PeteBarber
How to resolve strong references between Swift and Objective-C classes - using unowned and weak references from Swift to Objective-C classes
by Minh Danh Nguyen (ToughDev)
A look at Borland Turbo C/C++
by User 1556233
codeproject Everyone knows SVN (Subversions) is the best version control tool on the planet. XCode, though, might not be as great as eclipse or Visual Studio, it offers one of the best integration with open platforms than both eclipse and Visual Studio.
by ClayJones
UITextField has a property called inputAccessoryView that can be set to a UIToolbar to give the user something to do after inputting text.
by Mohammad Elsheimy
Learn how to create your CWinApp::OnIdle in C
by Edison Heng
Square Root algorithm for C
by Salmanzz
State Design Pattern
by Dennis E White
What really is the correct spelling for this conditional operator?
by Andrey Permamedov
The bug in MFC tool tip control
by alex turner
C takes far too long to code up when complex data marshalling or logic gets involved. Also, the very act of writing it is so slow because of its challenges to the IDE.
by NSProgrammer
In this post, I'm going to take a very short amount of time making everyone's color coding lives easier with some UIColor code extensions.
by NSProgrammer
How to update UITableView with a dynamic data source
by Minh Danh Nguyen (ToughDev)
How to use picojpeg library on a PIC with ILI9341 320×240 LCD module
by NSProgrammer
Let's jump into memory warnings!
by Faye Williams
What does the preprocessor do?
by Philipp_Engelmann
With IoT (Internet of Things) on the rise and hardware getting cheaper and cheaper, it's a great time to explore the possibilities this new technology provides.
by Mircea Diaconescu, Gerd Wagner
Learn how to develop Arduino-based apps for the Web of Things (WoT). This first part of a series of tutorials shows the basics of an Arduino program (known as a "sketch") and provides a quick introduction to some electronic components, including resistors, RGB LEDs and LEDs in general.
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.
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.