teststr.c

来自「实现在ARM上的ICP/IP功能的源代码。」· C语言 代码 · 共 27 行

C
27
字号
#include "true_false.h"
#include "stdlib.h"
#include "typedef.h"
#include "mem_man.h"
#include "rtl8019.h"
#include "netif.h"
#include "etherif.h"
#include "ip.h"
#include "arp.h"
#include "utilities.h"
#include "tcp.h"


u32_t ip=0;
u8_t t[20],sip[20]={0};
void teststrin(void){
Uart_Printf( "pls input the ip string:\n\n" ) ;
Uart_GetString(sip);
ip=iptoul(sip);
Uart_Printf("0x%x",ip);
}

void teststrout()
{
iptostr(t,ip);
Uart_Printf("  %s  ",t);
}

⌨️ 快捷键说明

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