From owner-freebsd-net@FreeBSD.ORG Wed Mar 17 21:06:20 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3C4A106566B for ; Wed, 17 Mar 2010 21:06:19 +0000 (UTC) (envelope-from gds089@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8358FC23 for ; Wed, 17 Mar 2010 21:06:19 +0000 (UTC) Received: by bwz8 with SMTP id 8so1505102bwz.3 for ; Wed, 17 Mar 2010 14:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=X4PRY4MYQ7SK+0rjbam/Mnuum4+3zyh2Ax9fxPjb8G0=; b=HEN7jtLABesxkLREAnj8b24n6tdV/EhaOGBnv0JFSMmQwl5ic8pXCSQVobmIRw1yct Ko4hwwuEUqvqxIf0vRucyJy8yc5veWJ4sPKsMPJ16ayqYMweIBmEqxUn19Qe7NEgdtUS BtehcFZK3L3xW/qpx9UwefKgUbhhDTtQ+F+Z8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=HA/YoxXDGKF/Z+7DwgJVZ1RFpnfV8eJ0UddSZQzqUeqG3urZzG0TxORnjuchsoL5B0 Cw3zaoqYQRH547LO0+WNSur1jFBVydDdwD8ZBqpXPT1WhwyLgdT9e9g/SQTbdBtdrXff uFh1NWJrZoXMdGoSoRHytM7OwuT6z5Z6J2JaI= Received: by 10.204.25.82 with SMTP id y18mr1638150bkb.150.1268858097256; Wed, 17 Mar 2010 13:34:57 -0700 (PDT) Received: from [192.168.15.3] ([188.249.167.245]) by mx.google.com with ESMTPS id 15sm4997460bwz.12.2010.03.17.13.34.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Mar 2010 13:34:55 -0700 (PDT) Message-Id: From: igeek To: serena zanetta In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 17 Mar 2010 23:39:12 +0300 References: X-Mailer: Apple Mail (2.935.3) Cc: freebsd-net@freebsd.org Subject: Re: sscanf in kernel X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 21:06:20 -0000 sscanf() has a kernel version declared in kernel.h. http://www.gelato.unsw.edu.au/lxr/source/include/linux/kernel.h#L196 -- Saleh On Mar 17, 2010, at 2:12 PM, serena zanetta wrote: > Hi, > I need to convert an ascii string in its corresponding hex version > (the same > as sscanf(str,"%02x%02x...",...) does) in the kernel. > > Could someone help me? > > Thank you in advice, > > Serena > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >