| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 390 人关注过本帖
标题:发现TC3的帮助一页内竟然有三个错误!
只看楼主 加入收藏
grub2linux
Rank: 1
等 级:新手上路
帖 子:335
专家分:0
注 册:2004-12-25
收藏
 问题点数:0 回复次数:0 
发现TC3的帮助一页内竟然有三个错误!

发现TC3的帮助一页内竟然有三个错误!
这一页的编辑者也太马虎了!

捱哌哌哌哌哌哌哌哌哌哌哌哌哌哌哌哌咻
?FP_OFF, FP_SEG, and MK_FP macros ?<DOS.H>
捃苘苘苘苘苘苘苘苘苘苘苘苘苘苘苘苘茌

?FP_OFF gets a far address offset
?FP_SEG gets a far address segment
?MK_FP makes a far pointer

Declaration:
?unsigned FP_OFF(void far *p);
?unsigned FP_SEG(void far *p);
?void far *MK_FP(unsigned seg, unsigned ofs);

Remarks:
FP_OFF is a macro that can get or set the offset of the far pointer *p. // 没有 set 功能

FP_SEG is a macro that gets or sets the segment value of the far pointer *p. // 没有 set 功能

MK_FP is a macro that makes a far pointer from its component segment (seg)
and offset (ofs) parts.

Return Value:
?FP_OFF returns an unsigned integer value representing an offset value.
?FP_SEG returns an unsigned integer representing a segment value.
?MK_FP returns a far pointer.

Portability:
?DOS ?UNIX ?ANSI C ?C++ Only ?
?Yes ? ? ? ?
韧屯屯贤屯屯拖屯屯屯屯贤屯屯屯屯图

See Also:
movedata segread

Example (for all three macros): // 说是三个,但却只说了两个例子

#include <stdio.h>
#include <dos.h>

main()
{
char *str = "Hello\n";

printf("The address pointed to by str is %04X:%04X\n",
FP_SEG(str), FP_OFF(str));
printf("The address of str is %04X:%04X\n", FP_SEG(&str), FP_OFF(&str));
return 0;

2006-07-16 13:24
快速回复:发现TC3的帮助一页内竟然有三个错误!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.048597 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved