mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-07 22:14:04 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
parent
1e8f76c000
commit
359d29ee0b
@ -72,6 +72,7 @@ showManual = path => {
|
||||
data = data.replace(/href="(?!http)(.*?)"(.*?)(?!\#)/g, `href="${filePath}$1$2"`);
|
||||
data = data.replace(/src="(?!http)(.*?)"/g, `src="${filePath}$1"`);
|
||||
$("#manual").html(`<div id="manualHead">${data}</div>`).fadeIn();
|
||||
Prism.highlightAll();
|
||||
location.href = p.length == 2 ? id : '#manualHead';
|
||||
})
|
||||
} else {
|
||||
@ -93,11 +94,13 @@ highlightManual = text => {
|
||||
// 列表搜索结果高亮
|
||||
highlightList = (string, match) => string.replace(match, `<span style="color:#ff5722">${match}</span>`)
|
||||
|
||||
// 隐藏所有窗口
|
||||
// 初始化
|
||||
init = () => {
|
||||
$("#mainlist").fadeOut(0);
|
||||
$("#options").fadeOut(0);
|
||||
$("#manual").fadeOut(0);
|
||||
$("html").niceScroll();
|
||||
$("#manual").niceScroll();
|
||||
}
|
||||
|
||||
// 检查升级
|
||||
@ -271,7 +274,7 @@ $(document).keydown(e => {
|
||||
let pre = $(".select").prev();
|
||||
// 没有到达边界时移动选择条
|
||||
if(pre.length != 0){
|
||||
event.preventDefault();
|
||||
// event.preventDefault();
|
||||
if(pre.offset().top < $(window).scrollTop()){
|
||||
$("html").animate({ scrollTop: "-=50" }, 0);
|
||||
}
|
||||
@ -287,7 +290,7 @@ $(document).keydown(e => {
|
||||
let next = $(".select").next();
|
||||
// 没有到达边界时移动选择条
|
||||
if(next.length !=0){
|
||||
event.preventDefault();
|
||||
// event.preventDefault();
|
||||
if(next.offset().top >= $(window).scrollTop() + 550){
|
||||
$("html").animate({ scrollTop: "+=50" }, 0);
|
||||
}
|
||||
|
574
assets/java.css
Normal file
574
assets/java.css
Normal file
@ -0,0 +1,574 @@
|
||||
/* Javadoc style sheet */
|
||||
/*
|
||||
Overall document style
|
||||
*/
|
||||
|
||||
@import url('resources/fonts/dejavu.css');
|
||||
|
||||
body {
|
||||
background-color:#ffffff;
|
||||
color:#353833;
|
||||
font-family:'DejaVu Sans', Arial, Helvetica, sans-serif;
|
||||
font-size:14px;
|
||||
margin:0;
|
||||
}
|
||||
a:link, a:visited {
|
||||
text-decoration:none;
|
||||
color:#4A6782;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
text-decoration:none;
|
||||
color:#bb7a2a;
|
||||
}
|
||||
a:active {
|
||||
text-decoration:none;
|
||||
color:#4A6782;
|
||||
}
|
||||
a[name] {
|
||||
color:#353833;
|
||||
}
|
||||
a[name]:hover {
|
||||
text-decoration:none;
|
||||
color:#353833;
|
||||
}
|
||||
pre {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
}
|
||||
h1 {
|
||||
font-size:20px;
|
||||
}
|
||||
h2 {
|
||||
font-size:18px;
|
||||
}
|
||||
h3 {
|
||||
font-size:16px;
|
||||
font-style:italic;
|
||||
}
|
||||
h4 {
|
||||
font-size:13px;
|
||||
}
|
||||
h5 {
|
||||
font-size:12px;
|
||||
}
|
||||
h6 {
|
||||
font-size:11px;
|
||||
}
|
||||
ul {
|
||||
list-style-type:disc;
|
||||
}
|
||||
code, tt {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
padding-top:4px;
|
||||
margin-top:8px;
|
||||
line-height:1.4em;
|
||||
}
|
||||
dt code {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
padding-top:4px;
|
||||
}
|
||||
table tr td dt code {
|
||||
font-family:'DejaVu Sans Mono', monospace;
|
||||
font-size:14px;
|
||||
vertical-align:top;
|
||||
padding-top:4px;
|
||||
}
|
||||
sup {
|
||||
font-size:8px;
|
||||
}
|
||||
/*
|
||||
Document title and Copyright styles
|
||||
*/
|
||||
.clear {
|
||||
clear:both;
|
||||
height:0px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.aboutLanguage {
|
||||
float:right;
|
||||
padding:0px 21px;
|
||||
font-size:11px;
|
||||
z-index:200;
|
||||
margin-top:-9px;
|
||||
}
|
||||
.legalCopy {
|
||||
margin-left:.5em;
|
||||
}
|
||||
.bar a, .bar a:link, .bar a:visited, .bar a:active {
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
.bar a:hover, .bar a:focus {
|
||||
color:#bb7a2a;
|
||||
}
|
||||
.tab {
|
||||
background-color:#0066FF;
|
||||
color:#ffffff;
|
||||
padding:8px;
|
||||
width:5em;
|
||||
font-weight:bold;
|
||||
}
|
||||
/*
|
||||
Navigation bar styles
|
||||
*/
|
||||
.bar {
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
padding:.8em .5em .4em .8em;
|
||||
height:auto;/*height:1.8em;*/
|
||||
font-size:11px;
|
||||
margin:0;
|
||||
}
|
||||
.topNav {
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
float:left;
|
||||
padding:0;
|
||||
width:100%;
|
||||
clear:right;
|
||||
height:2.8em;
|
||||
padding-top:10px;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.bottomNav {
|
||||
margin-top:10px;
|
||||
background-color:#4D7A97;
|
||||
color:#FFFFFF;
|
||||
float:left;
|
||||
padding:0;
|
||||
width:100%;
|
||||
clear:right;
|
||||
height:2.8em;
|
||||
padding-top:10px;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.subNav {
|
||||
background-color:#dee3e9;
|
||||
float:left;
|
||||
width:100%;
|
||||
overflow:hidden;
|
||||
font-size:12px;
|
||||
}
|
||||
.subNav div {
|
||||
clear:left;
|
||||
float:left;
|
||||
padding:0 0 5px 6px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
ul.navList, ul.subNavList {
|
||||
float:left;
|
||||
margin:0 25px 0 0;
|
||||
padding:0;
|
||||
}
|
||||
ul.navList li{
|
||||
list-style:none;
|
||||
float:left;
|
||||
padding: 5px 6px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
ul.subNavList li{
|
||||
list-style:none;
|
||||
float:left;
|
||||
}
|
||||
.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited {
|
||||
color:#FFFFFF;
|
||||
text-decoration:none;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.topNav a:hover, .bottomNav a:hover {
|
||||
text-decoration:none;
|
||||
color:#bb7a2a;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.navBarCell1Rev {
|
||||
background-color:#F8981D;
|
||||
color:#253441;
|
||||
margin: auto 5px;
|
||||
}
|
||||
.skipNav {
|
||||
position:absolute;
|
||||
top:auto;
|
||||
left:-9999px;
|
||||
overflow:hidden;
|
||||
}
|
||||
/*
|
||||
Page header and footer styles
|
||||
*/
|
||||
.header, .footer {
|
||||
clear:both;
|
||||
margin:0 20px;
|
||||
padding:5px 0 0 0;
|
||||
}
|
||||
.indexHeader {
|
||||
margin:10px;
|
||||
position:relative;
|
||||
}
|
||||
.indexHeader span{
|
||||
margin-right:15px;
|
||||
}
|
||||
.indexHeader h1 {
|
||||
font-size:13px;
|
||||
}
|
||||
.title {
|
||||
color:#2c4557;
|
||||
margin:10px 0;
|
||||
}
|
||||
.subTitle {
|
||||
margin:5px 0 0 0;
|
||||
}
|
||||
.header ul {
|
||||
margin:0 0 15px 0;
|
||||
padding:0;
|
||||
}
|
||||
.footer ul {
|
||||
margin:20px 0 5px 0;
|
||||
}
|
||||
.header ul li, .footer ul li {
|
||||
list-style:none;
|
||||
font-size:13px;
|
||||
}
|
||||
/*
|
||||
Heading styles
|
||||
*/
|
||||
div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
|
||||
background-color:#dee3e9;
|
||||
border:1px solid #d0d9e0;
|
||||
margin:0 0 6px -8px;
|
||||
padding:7px 5px;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||
background-color:#dee3e9;
|
||||
border:1px solid #d0d9e0;
|
||||
margin:0 0 6px -8px;
|
||||
padding:7px 5px;
|
||||
}
|
||||
ul.blockList ul.blockList li.blockList h3 {
|
||||
padding:0;
|
||||
margin:15px 0;
|
||||
}
|
||||
ul.blockList li.blockList h2 {
|
||||
padding:0px 0 20px 0;
|
||||
}
|
||||
/*
|
||||
Page layout container styles
|
||||
*/
|
||||
.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer {
|
||||
clear:both;
|
||||
/* padding:10px 20px; */
|
||||
position:relative;
|
||||
}
|
||||
.indexContainer {
|
||||
margin:10px;
|
||||
position:relative;
|
||||
font-size:12px;
|
||||
}
|
||||
.indexContainer h2 {
|
||||
font-size:13px;
|
||||
padding:0 0 3px 0;
|
||||
}
|
||||
.indexContainer ul {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
.indexContainer ul li {
|
||||
list-style:none;
|
||||
padding-top:2px;
|
||||
}
|
||||
.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt {
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
margin:10px 0 0 0;
|
||||
color:#4E4E4E;
|
||||
}
|
||||
.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd {
|
||||
margin:5px 0 10px 0px;
|
||||
font-size:14px;
|
||||
font-family:'DejaVu Sans Mono',monospace;
|
||||
}
|
||||
.serializedFormContainer dl.nameValue dt {
|
||||
margin-left:1px;
|
||||
font-size:1.1em;
|
||||
display:inline;
|
||||
font-weight:bold;
|
||||
}
|
||||
.serializedFormContainer dl.nameValue dd {
|
||||
margin:0 0 0 1px;
|
||||
font-size:1.1em;
|
||||
display:inline;
|
||||
}
|
||||
/*
|
||||
List styles
|
||||
*/
|
||||
ul.horizontal li {
|
||||
display:inline;
|
||||
font-size:0.9em;
|
||||
}
|
||||
ul.inheritance {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
ul.inheritance li {
|
||||
display:inline;
|
||||
list-style:none;
|
||||
}
|
||||
ul.inheritance li ul.inheritance {
|
||||
margin-left:15px;
|
||||
padding-left:15px;
|
||||
padding-top:1px;
|
||||
}
|
||||
ul.blockList, ul.blockListLast {
|
||||
margin:10px 0 10px 0;
|
||||
padding:0;
|
||||
}
|
||||
ul.blockList li.blockList, ul.blockListLast li.blockList {
|
||||
list-style:none;
|
||||
margin-bottom:15px;
|
||||
line-height:1.4;
|
||||
}
|
||||
ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList {
|
||||
padding:0px 20px 5px 10px;
|
||||
border:1px solid #ededed;
|
||||
background-color:#f8f8f8;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList {
|
||||
padding:0 0 5px 8px;
|
||||
background-color:#ffffff;
|
||||
border:none;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList ul.blockList li.blockList {
|
||||
margin-left:0;
|
||||
padding-left:0;
|
||||
padding-bottom:15px;
|
||||
border:none;
|
||||
}
|
||||
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
|
||||
list-style:none;
|
||||
border-bottom:none;
|
||||
padding-bottom:0;
|
||||
}
|
||||
table tr td dl, table tr td dl dt, table tr td dl dd {
|
||||
margin-top:0;
|
||||
margin-bottom:1px;
|
||||
}
|
||||
/*
|
||||
Table styles
|
||||
*/
|
||||
.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary {
|
||||
width:100%;
|
||||
border-left:1px solid #EEE;
|
||||
border-right:1px solid #EEE;
|
||||
border-bottom:1px solid #EEE;
|
||||
}
|
||||
.overviewSummary, .memberSummary {
|
||||
padding:0px;
|
||||
}
|
||||
.overviewSummary caption, .memberSummary caption, .typeSummary caption,
|
||||
.useSummary caption, .constantsSummary caption, .deprecatedSummary caption {
|
||||
position:relative;
|
||||
text-align:left;
|
||||
background-repeat:no-repeat;
|
||||
color:#253441;
|
||||
font-weight:bold;
|
||||
clear:none;
|
||||
overflow:hidden;
|
||||
padding:0px;
|
||||
padding-top:10px;
|
||||
padding-left:1px;
|
||||
margin:0px;
|
||||
white-space:initial;
|
||||
}
|
||||
.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link,
|
||||
.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link,
|
||||
.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover,
|
||||
.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover,
|
||||
.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active,
|
||||
.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active,
|
||||
.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited,
|
||||
.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited {
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span,
|
||||
.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
padding-bottom:7px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
border: none;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.activeTableTab span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
margin-right:3px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.tableTab span {
|
||||
white-space:nowrap;
|
||||
padding-top:5px;
|
||||
padding-left:12px;
|
||||
padding-right:12px;
|
||||
margin-right:3px;
|
||||
display:inline-block;
|
||||
float:left;
|
||||
background-color:#4D7A97;
|
||||
height:16px;
|
||||
}
|
||||
.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab {
|
||||
padding-top:0px;
|
||||
padding-left:0px;
|
||||
padding-right:0px;
|
||||
background-image:none;
|
||||
float:none;
|
||||
display:inline;
|
||||
}
|
||||
.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
|
||||
.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
position:relative;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
}
|
||||
.memberSummary .activeTableTab .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
margin-right:3px;
|
||||
position:relative;
|
||||
float:left;
|
||||
background-color:#F8981D;
|
||||
}
|
||||
.memberSummary .tableTab .tabEnd {
|
||||
display:none;
|
||||
width:5px;
|
||||
margin-right:3px;
|
||||
position:relative;
|
||||
background-color:#4D7A97;
|
||||
float:left;
|
||||
|
||||
}
|
||||
.overviewSummary td, .memberSummary td, .typeSummary td,
|
||||
.useSummary td, .constantsSummary td, .deprecatedSummary td {
|
||||
text-align:left;
|
||||
padding:0px 0px 12px 10px;
|
||||
width:100%;
|
||||
}
|
||||
th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th,
|
||||
td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{
|
||||
vertical-align:top;
|
||||
padding-right:0px;
|
||||
padding-top:8px;
|
||||
padding-bottom:3px;
|
||||
}
|
||||
th.colFirst, th.colLast, th.colOne, .constantsSummary th {
|
||||
background:#dee3e9;
|
||||
text-align:left;
|
||||
padding:8px 3px 3px 7px;
|
||||
}
|
||||
td.colFirst, th.colFirst {
|
||||
white-space:nowrap;
|
||||
font-size:13px;
|
||||
}
|
||||
td.colLast, th.colLast {
|
||||
font-size:13px;
|
||||
}
|
||||
td.colOne, th.colOne {
|
||||
font-size:13px;
|
||||
}
|
||||
.overviewSummary td.colFirst, .overviewSummary th.colFirst,
|
||||
.overviewSummary td.colOne, .overviewSummary th.colOne,
|
||||
.memberSummary td.colFirst, .memberSummary th.colFirst,
|
||||
.memberSummary td.colOne, .memberSummary th.colOne,
|
||||
.typeSummary td.colFirst{
|
||||
width:25%;
|
||||
vertical-align:top;
|
||||
}
|
||||
td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover {
|
||||
font-weight:bold;
|
||||
}
|
||||
.tableSubHeadingColor {
|
||||
background-color:#EEEEFF;
|
||||
}
|
||||
.altColor {
|
||||
background-color:#FFFFFF;
|
||||
}
|
||||
.rowColor {
|
||||
background-color:#EEEEEF;
|
||||
}
|
||||
/*
|
||||
Content styles
|
||||
*/
|
||||
.description pre {
|
||||
margin-top:0;
|
||||
}
|
||||
.deprecatedContent {
|
||||
margin:0;
|
||||
padding:10px 0;
|
||||
}
|
||||
.docSummary {
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.blockList ul.blockList ul.blockList li.blockList h3 {
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
div.block {
|
||||
font-size:14px;
|
||||
font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
td.colLast div {
|
||||
padding-top:0px;
|
||||
}
|
||||
|
||||
|
||||
td.colLast a {
|
||||
padding-bottom:3px;
|
||||
}
|
||||
/*
|
||||
Formatting effect styles
|
||||
*/
|
||||
.sourceLineNo {
|
||||
color:green;
|
||||
padding:0 30px 0 0;
|
||||
}
|
||||
h1.hidden {
|
||||
visibility:hidden;
|
||||
overflow:hidden;
|
||||
font-size:10px;
|
||||
}
|
||||
.block {
|
||||
display:block;
|
||||
margin:3px 10px 2px 0px;
|
||||
color:#474747;
|
||||
}
|
||||
.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink,
|
||||
.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel,
|
||||
.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink {
|
||||
font-weight:bold;
|
||||
}
|
||||
.deprecationComment, .emphasizedPhrase, .interfaceName {
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase,
|
||||
div.block div.block span.interfaceName {
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
div.contentContainer ul.blockList li.blockList h2{
|
||||
padding-bottom:0px;
|
||||
}
|
2
assets/jquery.nicescroll.min.js
vendored
Normal file
2
assets/jquery.nicescroll.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -675,7 +675,7 @@
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
#manual code {
|
||||
code {
|
||||
background-color: #f8f8f8;
|
||||
color: #e96900;
|
||||
padding: 3px 5px;
|
||||
@ -684,15 +684,15 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#manual code.descname {
|
||||
code.descname {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
#manual pre {
|
||||
pre {
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
#manual pre>code {
|
||||
pre>code {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
@ -702,17 +702,17 @@
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
#manual #manual .highlight {
|
||||
.highlight {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
#manual #manual .highlight pre {
|
||||
.highlight pre {
|
||||
margin-bottom: 0;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
#manual #manual .highlight pre,
|
||||
#manual pre {
|
||||
.highlight pre,
|
||||
pre {
|
||||
background-color: #f6f8fa;
|
||||
border-radius: 3px;
|
||||
font-size: 85%;
|
||||
@ -721,7 +721,7 @@
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
#manual pre code {
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
display: inline;
|
||||
@ -959,7 +959,7 @@
|
||||
padding-left: 128px !important;
|
||||
}
|
||||
|
||||
#manual .highlight {
|
||||
/* #manual .highlight {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
@ -1261,4 +1261,4 @@
|
||||
|
||||
#manual .highlight .il {
|
||||
color: #208050
|
||||
}
|
||||
} */
|
@ -16,9 +16,9 @@
|
||||
vertical-align: top;
|
||||
width: 80px;
|
||||
height: 30px;
|
||||
border-radius: 18px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
zoom: 0.6;
|
||||
zoom: 0.7;
|
||||
}
|
||||
|
||||
#options .checked-switch {
|
||||
@ -29,13 +29,13 @@
|
||||
}
|
||||
|
||||
#options .text-switch {
|
||||
background-color: #ed5b49;
|
||||
border: 1px solid #d2402e;
|
||||
background-color: #cccccc;
|
||||
border: 1px solid #dddddd;
|
||||
border-radius: inherit;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
width: 50px;
|
||||
width: 60px;
|
||||
height: inherit;
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
@ -54,13 +54,13 @@
|
||||
}
|
||||
|
||||
#options .text-switch:before {
|
||||
content: attr(data-no);
|
||||
right: 11px;
|
||||
content: 'OF';
|
||||
right: 6px;
|
||||
}
|
||||
|
||||
#options .text-switch:after {
|
||||
content: attr(data-yes);
|
||||
left: 11px;
|
||||
content: 'ON';
|
||||
left: 6px;
|
||||
color: #FFFFFF;
|
||||
opacity: 0;
|
||||
}
|
||||
@ -71,8 +71,16 @@
|
||||
}
|
||||
|
||||
#options .checked-switch:disabled~.text-switch {
|
||||
background-color: #9E9E9E!important;
|
||||
border: 1px solid #9E9E9E !important;
|
||||
cursor: no-drop;
|
||||
}
|
||||
|
||||
#options .checked-switch:disabled~.text-switch~.toggle-btn {
|
||||
cursor: no-drop;
|
||||
}
|
||||
|
||||
#options .checked-switch:disabled~.text-switch:before {
|
||||
content: '▬';
|
||||
right: 11px;
|
||||
}
|
||||
|
||||
#options .checked-switch:checked~.text-switch:before {
|
||||
@ -85,7 +93,7 @@
|
||||
|
||||
#options .toggle-btn {
|
||||
background: linear-gradient(#eee, #fafafa);
|
||||
border-radius: 100%;
|
||||
border-radius: 5px;
|
||||
height: 28px;
|
||||
left: 1px;
|
||||
position: absolute;
|
||||
@ -94,7 +102,7 @@
|
||||
}
|
||||
|
||||
#options .checked-switch:checked~.toggle-btn {
|
||||
left: 20px;
|
||||
left: 30px;
|
||||
}
|
||||
|
||||
#options .text-switch,
|
||||
|
142
assets/prism.css
Normal file
142
assets/prism.css
Normal file
@ -0,0 +1,142 @@
|
||||
/* PrismJS 1.16.0
|
||||
https://prismjs.com/download.html#themes=prism */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
background: none;
|
||||
text-shadow: 0 1px white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
font-size: 1em;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f6f8fa;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #9a6e3a;
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function,
|
||||
.token.class-name {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
179
assets/prism.js
Normal file
179
assets/prism.js
Normal file
File diff suppressed because one or more lines are too long
@ -72,26 +72,5 @@
|
||||
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width:9px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
-webkit-border-radius:5px;
|
||||
border-radius:5px;
|
||||
background:rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
-webkit-border-radius:5px;
|
||||
border-radius:5px;
|
||||
background:rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background:rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:window-inactive {
|
||||
background:rgba(0,0,0,0.05);
|
||||
height: 3px;
|
||||
}
|
@ -7,7 +7,7 @@ extern void ClearScreen(void);</p>
|
||||
<p>光标位置回到屏幕左上角。</p>
|
||||
|
||||
举例:
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
// clrscr.c
|
||||
|
||||
#include <system.h>
|
||||
@ -25,6 +25,6 @@ printf("Another Screen");
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:无
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:调用后在屏幕左侧图标区显示对应数字。</p>
|
||||
显示最大值为999。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// DispBCD.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:调用后在屏幕左侧图标区显示百分比滚动条。</p>
|
||||
sum为总长度,cur为当前位置。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// SetScrollBar.c
|
||||
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>功能:在屏幕上指定位置输出字符串</p>
|
||||
|
||||
<p>说明:outtextxy为指向TextOut的宏,用法相同。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
str所指向字符串可以为中文或英文。中文显示成16x16点阵,英文显示成8x16点阵。
|
||||
mode决定往屏幕上写的方式,其值含义如下:
|
||||
@ -16,10 +16,10 @@
|
||||
1:正常方式,即点阵中为0的点擦除,为1的点显示。
|
||||
2:反显方式,即点阵中为1的点擦除,为0的点显示。
|
||||
3:异或方式,即点阵中点的值和屏幕当前位置的值作异或后取值,为0则擦除,为1显示。
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// TextOut.c
|
||||
|
||||
@ -39,5 +39,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>功能:以指定模式刷新屏幕</p>
|
||||
|
||||
<p>说明:文曲星屏幕可以按大行(行高16点)或小行(行高8点)显示。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
以CC300的屏幕为例,液晶分辨率为112*48即横向可显示112点,纵向可显示48点
|
||||
由于一个大行占据16点,小行占据8点,故可显示48/16=3大行,或48/8=6小行。
|
||||
大行和小行可以同屏显示。具体哪一行为大行,娜一行为小行由mode来决定。
|
||||
@ -23,8 +23,8 @@
|
||||
...
|
||||
|
||||
以此类推。
|
||||
</pre>
|
||||
举例:<pre>
|
||||
</code></pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// TextOut.c
|
||||
|
||||
@ -52,5 +52,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="textmode.html">textmode</a>
|
||||
</code></pre>相关函数:<a href="textmode.html">textmode</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:计算|x|, 当x不为负时返回x,否则返回-x</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// abs.c
|
||||
|
||||
@ -33,5 +33,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="fabs.html">fabs</a>
|
||||
</code></pre>相关函数:<a href="fabs.html">fabs</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x的定义域为[-1.0,1.0],值域为[0,π]。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// acos.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="asin.html">asin</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="asin.html">asin</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x的定义域为[-1.0,1.0],值域为[-π/2,+π/2]。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// asin.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:值域为(-π/2,+π/2)。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// atan.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:值域为(-π/2,+π/2)。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// atan2.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="sin.html">sin</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:如果s1=s2或n=0则返回零,否则返回非零值。bcmp不检查NULL。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// bcmp.c
|
||||
|
||||
@ -38,5 +38,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcopy.html">bcopy</a>,<a href="bzero.html">bzero</a>
|
||||
</code></pre>相关函数:<a href="bcopy.html">bcopy</a>,<a href="bzero.html">bzero</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:bcopy不检查字符串中的空字节NULL,函数没有返回值。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// bcopy.c
|
||||
|
||||
@ -38,5 +38,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="bzero.html">bzero</a>
|
||||
</code></pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="bzero.html">bzero</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当在文曲星中,如果所按键在当前功能中不可用,便会发出类似声音。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// bell.c
|
||||
|
||||
@ -35,5 +35,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
</p>
|
||||
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// block.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="rectangle.html">rectangle</a>
|
||||
</code></pre>相关函数:<a href="rectangle.html">rectangle</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:bzero无返回值。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// bzero.c
|
||||
|
||||
@ -37,5 +37,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="bcopy.html">bcopy</a>
|
||||
</code></pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="bcopy.html">bcopy</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:如果分配成功则返回指向被分配内存的指针,否则返回空指针NULL。<br>
|
||||
当内存不再使用时,应使用free()函数将内存块释放。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// calloc.c
|
||||
|
||||
@ -35,5 +35,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="free.html">free</a>,<a href="malloc.html">malloc</a>,<a href="realloc.html">realloc</a>
|
||||
</code></pre>相关函数:<a href="free.html">free</a>,<a href="malloc.html">malloc</a>,<a href="realloc.html">realloc</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回x的上限,如74.12的上限为75,-74.12的上限为-74。返回值为float类型。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// ceil.c
|
||||
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="floor.html">floor</a>
|
||||
</code></pre>相关函数:<a href="floor.html">floor</a>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
<p>说明:清除屏幕缓冲区及液晶显示缓冲区<br>
|
||||
光标位置回到屏幕左上角。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// clrscr.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回值在[-1.0,1.0]之间。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// cos.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="sin.html">sin</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:cosh(x)=(e^x+e^(-x))/2</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// cosh.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="sinh.html">sinh</a>,<a href="tanh.html">tanh</a>
|
||||
</code></pre>相关函数:<a href="sinh.html">sinh</a>,<a href="tanh.html">tanh</a>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<h1>标准库函数 - cursor</h1>
|
||||
<pre>原型:extern void cursor(int mode);</pre>
|
||||
<pre>用法:#include <system.h></pre>
|
||||
<pre>功能:设定光标形态</pre>
|
||||
<pre>说明:mode值含义如下:0x00:块状光标(默认); 0x80:下划线光标; 其它值无意义</pre>
|
||||
<pre><code class="language-c">原型:extern void cursor(int mode);</code></pre>
|
||||
<pre><code class="language-c">用法:#include <system.h></code></pre>
|
||||
<pre><code class="language-c">功能:设定光标形态</code></pre>
|
||||
<pre><code class="language-c">说明:mode值含义如下:0x00:块状光标(默认); 0x80:下划线光标; 其它值无意义</code></pre>
|
||||
|
||||
举例:
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
// cursor.c
|
||||
|
||||
#include <system.h>
|
||||
@ -24,6 +24,6 @@
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:延时msec*4毫秒</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// delay.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="sleep.html">sleep</a>
|
||||
</code></pre>相关函数:<a href="sleep.html">sleep</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回值将被忽略</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// exit.c
|
||||
|
||||
@ -38,5 +38,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:e=2.718281828...</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// exp.c
|
||||
|
||||
@ -27,5 +27,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:计算|x|, 当x不为负时返回x,否则返回-x</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// fabs.c
|
||||
|
||||
@ -34,5 +34,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="abs.html">abs</a>
|
||||
</code></pre>相关函数:<a href="abs.html">abs</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回x的下限,如74.12的下限为74,-74.12的下限为-75。返回值为float类型。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// floor.c
|
||||
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="ceil.html">ceil</a>
|
||||
</code></pre>相关函数:<a href="ceil.html">ceil</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回x-n*y,符号同y。n=[x/y](向离开零的方向取整)</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// fmod.c
|
||||
|
||||
@ -34,5 +34,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -10,8 +10,7 @@
|
||||
<p>说明:p所指向的内存空间必须是用calloc,malloc,realloc所分配的内存。
|
||||
如果p为NULL或指向不存在的内存块则不做任何操作。</p>
|
||||
|
||||
举例:<pre>
|
||||
|
||||
举例:<pre><code class="language-c">
|
||||
// free.c
|
||||
|
||||
#include <syslib.h>
|
||||
@ -44,6 +43,5 @@
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="calloc.html">calloc</a>,<a href="malloc.html">malloc</a>,<a href="realloc.html">realloc</a>
|
||||
</code></pre>相关函数:<a href="calloc.html">calloc</a>,<a href="malloc.html">malloc</a>,<a href="realloc.html">realloc</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x=m*2^exp,m为规格化小数。返回尾数m,并将指数存入exp中。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// frexp.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="ldexp.html">ldexp</a>,<a href="modf.html">modf</a>
|
||||
</code></pre>相关函数:<a href="ldexp.html">ldexp</a>,<a href="modf.html">modf</a>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
<p>功能:取春鹤值阏 </p>
|
||||
<p>说明:把str所指向的汉字的16*16点阵信息存放在buf中。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
buf必须有足够的空间(>32字节)来容纳返回的数据。
|
||||
只返回str指向的第一个汉字的点阵数据。返回的点阵排列如下:
|
||||
@ -17,9 +17,9 @@
|
||||
... ...
|
||||
十四字节 第30字节
|
||||
十五字节 第31字节
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// get_chi_font.c
|
||||
|
||||
@ -59,5 +59,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="write_chi_font.html">write_chi_font</a>
|
||||
</code></pre>相关函数:<a href="write_chi_font.html">write_chi_font</a>
|
||||
|
||||
|
@ -8,13 +8,13 @@
|
||||
<p>功能:取英文字符的点阵</p>
|
||||
|
||||
<p>说明:把字符ch的点阵信息存放在buf中。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
buf必须有足够的空间容纳返回的数据。
|
||||
mode=0时返回8x16点阵信息,mode=1时返回8x8点阵信息。
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// get_eng_font.c
|
||||
|
||||
@ -71,5 +71,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="write_eng_font.html">write_eng_font</a>
|
||||
</code></pre>相关函数:<a href="write_eng_font.html">write_eng_font</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:从键盘上读取一个键,并返回该键的键值</p>
|
||||
getch是到getchar的宏定义
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// getchar.c
|
||||
|
||||
@ -29,5 +29,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
</pre>相关函数:<font color=gray>getkey</font>,<a href="kbhit.html">kbhit</a>
|
||||
</code></pre>相关函数:<font color=gray>getkey</font>,<a href="kbhit.html">kbhit</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:功能同getchar</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// getkey.c
|
||||
|
||||
@ -28,5 +28,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
</pre>相关函数:<font color=gray>getch,getchar,kbhit</font>
|
||||
</code></pre>相关函数:<font color=gray>getch,getchar,kbhit</font>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:(x,y)为屏幕上点的坐标,如果点为清除状态返回零,否则返回非零值。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// pixel.c
|
||||
|
||||
@ -36,5 +36,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="putpixel.html">putpixel</a>
|
||||
</code></pre>相关函数:<a href="putpixel.html">putpixel</a>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
gotoxy(0,0)将光标移动到屏幕左上角。
|
||||
move(row,col)是到gotoxy的宏,将光标移动到指定行row和列col
|
||||
move(1,1)将光标移动到屏幕左上角。
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// gotoxy.c
|
||||
|
||||
@ -37,5 +37,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回斜边值。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// hypot.c
|
||||
|
||||
@ -28,5 +28,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="frexp.html">frexp</a>,<a href="ldexp.html">ldexp</a>
|
||||
</code></pre>相关函数:<a href="frexp.html">frexp</a>,<a href="ldexp.html">ldexp</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为数字0-9或字母a-z及A-Z时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isalnum.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href="isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href="isspace.html">isspace</a>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<p>说明:当c为英文字母a-z或A-Z时,返回非零值,否则返回零</p>
|
||||
|
||||
举例:
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
// isalpha.c
|
||||
|
||||
#include <syslib.h>
|
||||
@ -26,6 +26,6 @@
|
||||
}
|
||||
return 0; // just to avoid warnings by compiler
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:<a href="isalnum.html">isalnum</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为ascii码时,返回非零值,否则返回零。ascii码指0x00-0x7F之间的字符</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isascii.c
|
||||
|
||||
@ -33,5 +33,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为TAB或空格时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isalnum.c
|
||||
|
||||
@ -29,5 +29,5 @@
|
||||
printf("%c:%s\n",c,isalnum(c)?"yes":"no");
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalpha.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalpha.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c在0x00-0x1F之间或等于0x7F(DEL)时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// iscntrl.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为数字0-9时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isdigit.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
<p>功能:判断字符c是否为除空格外的可打印字符<p>
|
||||
<p>说明:当c为可打印字符(0x21-0x7e)时,返回非零值,否则返回零。<p>
|
||||
举例:
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
// isgraph.c
|
||||
|
||||
#include <syslib.h>
|
||||
@ -25,6 +25,6 @@
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:<a href="isprint.html">isprint</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为小写英文字母(a-z)时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// islower.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isupper.html">isupper</a>
|
||||
</code></pre>相关函数:<a href="isupper.html">isupper</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为可打印字符(0x20-0x7e)时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isprint.c
|
||||
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isgraph.html">isgraph</a>
|
||||
</code></pre>相关函数:<a href="isgraph.html">isgraph</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:当c为标点符号时,返回非零值,否则返回零。
|
||||
标点符号指那些既不是字母数字,也不是空格的可打印字符。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// ispunct.c
|
||||
|
||||
@ -36,5 +36,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href=isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:当c为空白符时,返回非零值,否则返回零。</p>
|
||||
空白符指空格、水平制表、垂直制表、换页、回车和换行符。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isspace.c
|
||||
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>
|
||||
</code></pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="isxdigit.html">isxdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为大写英文字母(A-Z)时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// isupper.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="islower.html">islower</a>
|
||||
</code></pre>相关函数:<a href="islower.html">islower</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当c为A-F,a-f或0-9之间的十六进制数字时,返回非零值,否则返回零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// isxdigit.c
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
</code></pre>相关函数:<a href="isalnum.html">isalnum</a>,<a href="isalpha.html">isalpha</a>,<a href="isdigit.html">isdigit</a>,<a href="iscntrl.html">iscntrl</a>,<a href="isgraph.html">isgraph</a>,<a href="isprint.html">isprint</a>,<a href="ispunct.html">ispunct</a>,<a href=isspace.html">isspace</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回指向转换后的字符串的指针</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// itoa.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
如果有键按下,则返回对应键值;否则返回零。
|
||||
kbhit不等待键盘按键。无论有无按键都会立即返回。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// kbhit.c
|
||||
|
||||
@ -36,5 +36,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<font color=gray>getkey,getch</font>,<a href="getchar.html">getchar</a>
|
||||
</code></pre>相关函数:<font color=gray>getkey,getch</font>,<a href="getchar.html">getchar</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回x*2^exp的值。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// ldexp.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="frexp.html">frexp</a>,<a href="modf.html">modf</a>
|
||||
</code></pre>相关函数:<a href="frexp.html">frexp</a>,<a href="modf.html">modf</a>
|
||||
|
||||
|
@ -8,15 +8,15 @@
|
||||
<p>功能:在屏幕上画直线</p>
|
||||
|
||||
<p>说明:(left,top)和(right,bottom)指定直线的两个端点坐标。mode决定划线的模式。</p>
|
||||
<pre> 超出屏幕的线将被裁端。
|
||||
<pre><code class="language-c"> 超出屏幕的线将被裁端。
|
||||
mode值的含义:
|
||||
mode=0:清除方式
|
||||
=1:正常方式
|
||||
=2:取反方式
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// line.c
|
||||
|
||||
@ -37,5 +37,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x的值应大于零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// log.c
|
||||
|
||||
@ -28,5 +28,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="log10.html">log10</a>
|
||||
</code></pre>相关函数:<a href="log10.html">log10</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x的值应大于零。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// log10.c
|
||||
|
||||
@ -28,5 +28,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="log.html">log</a>
|
||||
</code></pre>相关函数:<a href="log.html">log</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:如果分配成功则返回指向被分配内存的指针,否则返回空指针NULL。</p>
|
||||
当内存不再使用时,应使用free()函数将内存块释放。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// malloc.c
|
||||
|
||||
@ -35,5 +35,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="calloc.html">calloc</a>,<a href="free.html">free</a>,<a href="realloc.html">realloc</a>
|
||||
</code></pre>相关函数:<a href="calloc.html">calloc</a>,<a href="free.html">free</a>,<a href="realloc.html">realloc</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回指向字符ch后的第一个字符的指针,如果src前n个字节中不存在ch则返回NULL。ch被复制。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// memccpy.c
|
||||
|
||||
@ -37,5 +37,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:当第一次遇到字符ch时停止查找。如果成功,返回指向字符ch的指针;否则返回NULL。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// memchr.c
|
||||
|
||||
@ -33,5 +33,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memmove.html">memmove</a>,<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memmove.html">memmove</a>,<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -8,12 +8,12 @@
|
||||
<p>功能:比较内存区域buf1和buf2的前count个字节。</p>
|
||||
|
||||
<p>说明:</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
当buf1<buf2时,返回值<0
|
||||
当buf1=buf2时,返回值=0
|
||||
当buf1>buf2时,返回值>0
|
||||
</pre>
|
||||
举例:<pre>
|
||||
</code></pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// memcmp.c
|
||||
|
||||
@ -42,5 +42,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memicmp.html">memicmp</a>,<a href="strcmp.html">strcmp</a>
|
||||
</code></pre>相关函数:<a href="memicmp.html">memicmp</a>,<a href="strcmp.html">strcmp</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:src和dest所指内存区域不能重叠,函数返回指向dest的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// memcpy.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memmove.html">memmove</a>,<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memmove.html">memmove</a>,<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -8,13 +8,13 @@
|
||||
<p>功能:比较内存区域buf1和buf2的前count个字节但不区分字母的大小写。</p>
|
||||
|
||||
<p>说明:memicmp同memcmp的唯一区别是memicmp不区分大小写字母。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
当buf1<buf2时,返回值<0
|
||||
当buf1=buf2时,返回值=0
|
||||
当buf1>buf2时,返回值>0
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// memicmp.c
|
||||
|
||||
@ -43,5 +43,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memcmp.html">memcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
</code></pre>相关函数:<a href="memcmp.html">memcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:src和dest所指内存区域可以重叠,但复制后src内容会被更改。函数返回指向dest的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// memmove.c
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回指向buffer的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// memset.c
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bzero.html">bzero</a>,<a href="setmem.html">setmem</a>,<a href="strset.html">strset</a>
|
||||
</code></pre>相关函数:<a href="bzero.html">bzero</a>,<a href="setmem.html">setmem</a>,<a href="strset.html">strset</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回小数部分,将整数部分存入*i所指内存中。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// modf.c
|
||||
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="frexp.html">frexp</a>,<a href="ldexp.html">ldexp</a>
|
||||
</code></pre>相关函数:<a href="frexp.html">frexp</a>,<a href="ldexp.html">ldexp</a>
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
gotoxy(0,0)将光标移动到屏幕左上角。
|
||||
move(row,col)是到gotoxy的宏,将光标移动到指定行row和列col
|
||||
move(1,1)将光标移动到屏幕左上角。
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// gotoxy.c
|
||||
|
||||
@ -37,5 +37,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:src和dest所指内存区域可以重叠,但复制后src内容会被更改。函数返回指向dest的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// movmem.c
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memmove.html">memmove</a>
|
||||
</code></pre>相关函数:<a href="memmove.html">memmove</a>
|
||||
|
||||
|
@ -8,15 +8,15 @@
|
||||
<p>功能:调用系统例程</p>
|
||||
|
||||
<p>说明:文曲星是单任务系统,为防止应用程序占用过多的系统时间而影响系统程序的执行</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
同时也为了防止个别程序崩溃而造成系统无法启动,文曲星内核在中断到来时会检
|
||||
测应用程序所执行的时间,如果在4秒内系统程序没有得到运行,则中断程序将强迫
|
||||
文曲星进入睡眠状态,即所谓的死机。
|
||||
因此,当程序运算时间过长(一般为循环过程)时,请调用noidle来防止系统关机。
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// noidle.c
|
||||
|
||||
@ -40,5 +40,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>功能:在屏幕上指定位置输出字符串</p>
|
||||
|
||||
<p>说明:outtextxy为指向TextOut的宏,用法相同。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
str所指向字符串可以为中文或英文。中文显示成16x16点阵,英文显示成8x16点阵。
|
||||
mode决定往屏幕上写的方式,其值含义如下:
|
||||
@ -16,10 +16,10 @@
|
||||
1:正常方式,即点阵中为0的点擦除,为1的点显示。
|
||||
2:反显方式,即点阵中为1的点擦除,为0的点显示。
|
||||
3:异或方式,即点阵中点的值和屏幕当前位置的值作异或后取值,为0则擦除,为1显示。
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// TextOut.c
|
||||
|
||||
@ -39,5 +39,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x应大于零,返回幂指数的结果。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// pow.c
|
||||
|
||||
@ -27,5 +27,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="pow10.html">pow10</a>
|
||||
</code></pre>相关函数:<a href="pow10.html">pow10</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:相当于pow(10.0,x)。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// pow10.c
|
||||
|
||||
@ -28,5 +28,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="pow.html">pow</a>
|
||||
</code></pre>相关函数:<a href="pow.html">pow</a>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>功能:格式化字符串输出</p>
|
||||
|
||||
<p>说明:format指定输出格式,后面跟要输出的变量</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
目前printf支持以下格式:
|
||||
%c 单个字符
|
||||
%d 十进制整数
|
||||
@ -25,9 +25,9 @@
|
||||
域宽是一个整数,设置了打印一个格式化字符串的最小域。精度使用小数点后加数字表示的,
|
||||
给出每个转换说明符所要输出的字符个数。
|
||||
<font color=red>注意</font>:带修饰符的显示可能不正常
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// printf.c
|
||||
|
||||
@ -80,5 +80,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:字符输出在屏幕的当前位置。</p>
|
||||
可用move或gotoxy改变光标位置。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// putchar.c
|
||||
|
||||
@ -38,5 +38,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
1:在(x,y)处画点
|
||||
2:将(x,y)处的点的状态取反
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// pixel.c
|
||||
|
||||
@ -39,5 +39,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="getpixel.html">getpixel</a>
|
||||
</code></pre>相关函数:<a href="getpixel.html">getpixel</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:返回一个指向对应拼音字符串。多音字的几个读音之间用空格分隔。
|
||||
拼音保存在系统缓冲区中。如想保留请将其复制到程序的变量中。 </p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// pyfc.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:如果重新分配成功则返回指向被分配内存的指针,否则返回空指针NULL。</p>
|
||||
当内存不再使用时,应使用free()函数将内存块释放。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// realloc.c
|
||||
|
||||
@ -43,5 +43,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="calloc.html">calloc</a>,<a href="free.html">free</a>,<a href="malloc.html">malloc</a>
|
||||
</code></pre>相关函数:<a href="calloc.html">calloc</a>,<a href="free.html">free</a>,<a href="malloc.html">malloc</a>
|
||||
|
||||
|
@ -8,14 +8,14 @@
|
||||
<p>功能:在屏幕上画一矩形。</p>
|
||||
|
||||
<p>说明:(left,top)指定左上角坐标,(right,bottom)指定右下角坐标。</p>
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
mode决定画图方式,其值含义如下:
|
||||
0:清除方式
|
||||
1:正常方式
|
||||
2:反相方式
|
||||
</pre>
|
||||
</code></pre>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// rectangle.c
|
||||
|
||||
@ -42,5 +42,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="block.html">block</a>
|
||||
</code></pre>相关函数:<a href="block.html">block</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回指向buf的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// setmem.c
|
||||
@ -30,5 +30,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bzero.html">bzero</a>,<a href="memset.html">memset</a>,<a href="strset.html">strset</a>
|
||||
</code></pre>相关函数:<a href="bzero.html">bzero</a>,<a href="memset.html">memset</a>,<a href="strset.html">strset</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:x的值域为[-1.0,1.0]。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// sin.c
|
||||
|
||||
@ -29,5 +29,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
</code></pre>相关函数:<a href="asin.html">asin</a>,<a href="acos.html">acos</a>,<a href="atan.html">atan</a>,<a href="atan2.html">atan2</a>,<a href="cos.html">cos</a>,<a href="tan.html">tan</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:sinh(x)=(e^x-e^(-x))/2。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// sinh.c
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="cosh.html">cosh</a>,<a href="tanh.html">tanh</a>
|
||||
</code></pre>相关函数:<a href="cosh.html">cosh</a>,<a href="tanh.html">tanh</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:延时sec秒</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// sleep.c
|
||||
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="delay.html">delay</a>
|
||||
</code></pre>相关函数:<a href="delay.html">delay</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<p>说明:x应大于等于零。</p>
|
||||
|
||||
举例:
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
|
||||
|
||||
// sqrt.c
|
||||
@ -27,5 +27,5 @@
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:无
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。</p>
|
||||
返回指向dest结尾处字符(NULL)的指针。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// stpcpy.c
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。</p>
|
||||
返回指向dest的指针。
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strcat.c
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="strncat.html">strncat</a>
|
||||
</code></pre>相关函数:<a href="strncat.html">strncat</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回首次出现c的位置的指针,如果s中不存在c则返回NULL。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strchr.c
|
||||
@ -34,5 +34,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memchr.html">memchr</a>
|
||||
</code></pre>相关函数:<a href="memchr.html">memchr</a>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
当s1=s2时,返回值=0
|
||||
当s1>s2时,返回值>0
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// strcmp.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="memcmp.html">memcmp</a>,<a href="stricmp.html">stricmp</a>,<a href="strncmp.html">strncmp</a>
|
||||
</code></pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="memcmp.html">memcmp</a>,<a href="stricmp.html">stricmp</a>,<a href="strncmp.html">strncmp</a>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
当s1=s2时,返回值=0
|
||||
当s1>s2时,返回值>0
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// stricmp.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="strcmp.html">strcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
</code></pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="strcmp.html">strcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
举例:
|
||||
|
||||
<pre>
|
||||
<pre><code class="language-c">
|
||||
// strcpy.c
|
||||
|
||||
#include <syslib.h>
|
||||
@ -27,6 +27,6 @@
|
||||
getchar();
|
||||
return 0;
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
相关函数:<a href="memccpy.html">memccpy</a>,<a href="memcpy.html">memcpy</a>,<a href="stpcpy.html">stpcpy</a>,<a href="strdup.html">strdup</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回第一个出现的字符在s1中的下标值,亦即在s1中出现而s2中没有出现的子串的长度。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strcspn.c
|
||||
@ -32,5 +32,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="strpbrk.html">strpbrk</a>
|
||||
</code></pre>相关函数:<a href="strpbrk.html">strpbrk</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回指向被复制的字符串的指针,所需空间由malloc()分配且可以由free()释放。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strdup.c
|
||||
@ -31,5 +31,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
</code></pre>相关函数:<a href="memccpy.html">memccpy</a>,<a href="memcpy.html">memcpy</a>,<a href="strcpy.html">strcpy</a>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
当s1=s2时,返回值=0
|
||||
当s1>s2时,返回值>0
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
// stricmp.c
|
||||
|
||||
@ -41,5 +41,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="strcmp.html">strcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
</code></pre>相关函数:<a href="bcmp.html">bcmp</a>,<a href="strcmp.html">strcmp</a>,<a href="stricmp.html">stricmp</a>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:返回s的长度,不包括结束符NULL。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strlen.c
|
||||
@ -29,5 +29,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:无
|
||||
</code></pre>相关函数:无
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
<p>说明:只转换s中出现的大写字母,不改变其它字符。返回指向s的指针。</p>
|
||||
|
||||
举例:<pre>
|
||||
举例:<pre><code class="language-c">
|
||||
|
||||
|
||||
// strlwr.c
|
||||
@ -29,5 +29,5 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
</pre>相关函数:<a href="strupr.html">strupr</a>
|
||||
</code></pre>相关函数:<a href="strupr.html">strupr</a>
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user