⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uiplib.lst

📁 c8051f020_uip1.0.rar
💻 LST
字号:
C51 COMPILER V9.00   UIPLIB                                                                02/06/2010 18:49:06 PAGE 1   


C51 COMPILER V9.00, COMPILATION OF MODULE UIPLIB
OBJECT MODULE PLACED IN ..\debug\uiplib.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\uip1.0\uip\uiplib.c LARGE BROWSE INCDIR(F:\c8051f020_uip1.0;..\uip1.0;..
                    -\uip1.0\apps;..\uip1.0\apps\dhcpc;..\uip1.0\apps\hello-world;..\uip1.0\apps\httpd;..\uip1.0\apps\resolv;..\uip1.0\apps\s
                    -mtp;..\uip1.0\apps\telnetd;..\uip1.0\apps\webclient;..\uip1.0\apps\webserver;..\uip1.0\apps\webserver\httpd-fs;..\uip1.0
                    -\lib;..\uip1.0\uip) DEBUG OBJECTEXTEND PRINT(.\uiplib.lst) OBJECT(..\debug\uiplib.obj)

line level    source

   1          /*
   2           * Copyright (c) 2004, Adam Dunkels and the Swedish Institute of
   3           * Computer Science.
   4           * All rights reserved.
   5           *
   6           * Redistribution and use in source and binary forms, with or without
   7           * modification, are permitted provided that the following conditions
   8           * are met:
   9           * 1. Redistributions of source code must retain the above copyright
  10           *    notice, this list of conditions and the following disclaimer.
  11           * 2. Redistributions in binary form must reproduce the above copyright
  12           *    notice, this list of conditions and the following disclaimer in the
  13           *    documentation and/or other materials provided with the distribution.
  14           * 3. The name of the author may not be used to endorse or promote
  15           *    products derived from this software without specific prior
  16           *    written permission.
  17           *
  18           * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
  19           * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20           * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21           * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  22           * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  23           * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  24           * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25           * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26           * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  27           * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28           * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29           *
  30           * This file is part of the uIP TCP/IP stack
  31           *
  32           * $Id: uiplib.c,v 1.2 2006/06/12 08:00:31 adam Exp $
  33           *
  34           */
  35          
  36          
  37          #include "uip.h"
  38          #include "uiplib.h"
  39          
  40          
  41          /*-----------------------------------------------------------------------------------*/
  42          unsigned char
  43          uiplib_ipaddrconv(char *addrstr, unsigned char *ipaddr)
  44          {
  45   1        unsigned char tmp;
  46   1        char c;
  47   1        unsigned char i, j;
  48   1      
  49   1        tmp = 0;
  50   1        
  51   1        for(i = 0; i < 4; ++i) {
  52   2          j = 0;
C51 COMPILER V9.00   UIPLIB                                                                02/06/2010 18:49:06 PAGE 2   

  53   2          do {
  54   3            c = *addrstr;
  55   3            ++j;
  56   3            if(j > 4) {
  57   4              return 0;
  58   4            }
  59   3            if(c == '.' || c == 0) {
  60   4              *ipaddr = tmp;
  61   4              ++ipaddr;
  62   4              tmp = 0;
  63   4            } else if(c >= '0' && c <= '9') {
  64   4              tmp = (tmp * 10) + (c - '0');
  65   4            } else {
  66   4              return 0;
  67   4            }
  68   3            ++addrstr;
  69   3          } while(c != '.' && c != 0);
  70   2        }
  71   1        return 1;
  72   1      }
  73          
  74          /*-----------------------------------------------------------------------------------*/


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    145    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----       7
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -