www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/07/02/09:30:38

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Mon, 2 Jul 2001 09:30:30 -0400
MIME-Version: 1.0
Subject: Re: v2loadimage proxy rev 3
Message-ID: <3B403F36.24229.393EF@localhost>
References: <3B3F5BE9 DOT 21153 DOT 2517F9 AT localhost>
In-reply-to: <Pine.SUN.3.91.1010702085334.3012A@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> This is fine, but where is __strnlen?  Is this some new function in
> the current CVS?  I don't see it.

Sorry about that. It's a function I added. It's definition:
static inline unsigned char
__strnlen(const char *str, size_t max)
{
  const char *ptr = str;
  while (*ptr && (ptr - str) < max)
    ++ptr;
  return ptr - str;
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019