Skip to content

Instantly share code, notes, and snippets.

@lkuper
Created March 16, 2014 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkuper/9589829 to your computer and use it in GitHub Desktop.
Save lkuper/9589829 to your computer and use it in GitHub Desktop.
#[lang="strdup_uniq"]
#[cfg(not(test))]
#[allow(missing_doc)]
#[inline]
pub unsafe fn strdup_uniq(ptr: *u8, len: uint) -> ~str {
from_buf_len(ptr, len)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment