Gwynne's Blog

Main menu

Skip to primary content
Skip to secondary content
  • Home

Tag Archives: bash

String parsing

Posted on February 2, 2010 by Gwynne Raskind
Reply

String parsing in C is painful and annoying.

I want to parse the components of an absolute POSIX path. Here’s the code to do it in several languages.

Continue reading →
Posted in Programming | Tagged bash, c, objective-c, parsing, php, Programming, python, shell | Leave a reply

Recent Comments

  • steve donovan on Lua + iPhone = mess
  • Chad on Markdown is cool
  • Ivan Castell on PHP Advent 2011

Categories

  • Missions of the Reliant (41)
  • Non-Programming (6)
  • Programming (60)

Tags

10.6 Adobe Photoshop Elements assembly blog c clang Cocoa code mistakes css DreamHost garbage collection gcc html Key-Value Observing Leopard Mac Toolbox math Michael Ash Michael Rubin Missions of the Reliant objective-c OpenAL OpenGL optimization Pascal php PLBlocks porting Programming python random rant roleplay screenshot SheepShaver shell silly Snow Leopard star trek technobabble terminal tv quotes WordPress WordPress plugin Xcode

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Archives

  • December 2011 (4)
  • February 2011 (1)
  • December 2010 (2)
  • November 2010 (2)
  • October 2010 (3)
  • September 2010 (2)
  • August 2010 (1)
  • July 2010 (4)
  • June 2010 (6)
  • May 2010 (7)
  • April 2010 (7)
  • March 2010 (7)
  • February 2010 (11)
  • January 2010 (6)
  • November 2009 (1)
  • September 2009 (1)
  • August 2009 (1)
Proudly powered by WordPress