• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Teach ary_entry to handle negative offsets (wikitext, 5747c2f)

Created 2/5/2008, updated 3/5/2024
  • snippets

We sometimes pass in values like -1 to ask for the last item in the array.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Fix up remainer sites to use new array API (wikitext, 6ca4415)
Add NO_ITEM macro to ary.h (wikitext, d892368) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).