From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3684 Path: news.gmane.org!not-for-mail From: "Kirill Ternosvky" Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl regression tests Date: Fri, 19 Jul 2013 12:45:04 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1374252322 7761 80.91.229.3 (19 Jul 2013 16:45:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2013 16:45:22 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3688-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 19 18:45:25 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V0Dnz-0007yc-LK for gllmg-musl@plane.gmane.org; Fri, 19 Jul 2013 18:45:19 +0200 Original-Received: (qmail 7303 invoked by uid 550); 19 Jul 2013 16:45:19 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7294 invoked from network); 19 Jul 2013 16:45:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1374252307; bh=HYwnXF087oY/2tUjLBJ1LQWhaSZJGH0J/LrPQwFYc7s=; h=Content-Type:To:Subject:References:Date:MIME-Version: Content-Transfer-Encoding:From:Message-ID:In-Reply-To:User-Agent; b=X3SC5R5XGOODEG70obINEjyUk0clJxtNlttWqBcv3xFJ5KfNby9xLz5RKBtTuQpNd jUEsFCnCnnM+S9quI3YdlHZBkmd0+67v+WC8QojaqOML7Ad0qGpS3l4Hn0NkBT6fAE 1cdprB3FY3aA5OfSPFdvRGVfv3wkdTEkcINYdnKI= Authentication-Results: smtp19.mail.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) Xref: news.gmane.org gmane.linux.lib.musl.general:3684 Archived-At: /* FILE: scanf-bytes-consumed.c */ /* * Commit: 5efc6af4ebb9d50eb978d0338835544fdfea0396 * scanf misreports bytes consumed when EOF is hit (or null for sscanf) */ #include #include "test.h" int main(void) { char buf[] = { 'a', 'a', 0 }; char dest[3]; int read_count; sscanf(buf, "%s%n", dest, &read_count); if(read_count != 2) { t_error("sscanf consumed 2 bytes but reported %d\n", read_count); } }