From owner-freebsd-questions Sat Oct 19 4:22:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3224E37B401 for ; Sat, 19 Oct 2002 04:22:40 -0700 (PDT) Received: from sofia.digsys.bg (sofia.digsys.bg [193.68.3.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id E214A43E7B for ; Sat, 19 Oct 2002 04:22:32 -0700 (PDT) (envelope-from alalev@uni-svishtov.bg) Received: from ns.uni-svishtov.bg (ns.uni-svishtov.bg [193.68.172.1]) by sofia.digsys.bg (8.9.0/8.9.0) with ESMTP id OAA06821 for ; Sat, 19 Oct 2002 14:21:12 +0300 (EEST) Received: from mail.uni-svishtov.bg (grinch.uni-svishtov.bg [193.68.172.9]) by ns.uni-svishtov.bg (8.12.3/8.12.3) with ESMTP id g9JBIO0j097749 for ; Sat, 19 Oct 2002 14:18:24 +0300 (EEST) (envelope-from alalev@uni-svishtov.bg) Received: from uni-svishtov.bg (lalev.uni-svishtov.bg [193.68.173.61]) by mail.uni-svishtov.bg (8.12.6/8.12.6) with ESMTP id g9JBIOjD097706 for ; Sat, 19 Oct 2002 14:18:24 +0300 (EEST) (envelope-from alalev@uni-svishtov.bg) Message-ID: <3DB13F5D.1060908@uni-svishtov.bg> Date: Sat, 19 Oct 2002 14:17:49 +0300 From: Angelin Lazarov Lalev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Subject: C programming help ? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I need to convert some bytes, which are not an internet address, from machine to network byte order (described in RFC1700). I could do it mannualy, assuming a I386 (or some other) architecture, but then my code will be a lot less portable. Is there any function in libc or somewhere else which will do that conversion for me (and will be updated when new architecture is added)? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message