LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Simple C: Filling in the blanks - A simple memory allocator/reallocator.

Posted 01-23-2012 at 07:32 AM by rainbowsally

No memdup()? No memcat()? No prob.

Today's Features:
  • Simple C/C++ program and new memdup() and memcat() functions.
  • C macros (spanning lines with backslash) to create 'lenient' aliases.
  • Type casting in C/C++ to override sometimes overly strict syntax checks.
Anyone that has used strdup() or strcat() knows how convenient those are. But when it comes to memory allocation and reallocation for other kinds of data the lack of simple standard mechanisms for this often leads to duplicated...
Member
Posted in Uncategorized
Views 4042 Comments 1 rainbowsally is offline

  



All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration