2021-02-11 12:59:12 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2022-09-08 08:17:03 +08:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
2021-02-11 12:59:12 +08:00
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
2021-10-26 03:34:27 +08:00
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
2022-09-08 08:17:03 +08:00
< meta name = "generator" content = "Doxygen 1.9.5" / >
2021-02-11 12:59:12 +08:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Algorithms_in_C: conversions/octal_to_hexadecimal.c File Reference< / title >
< link href = "../../tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../jquery.js" > < / script >
< script type = "text/javascript" src = "../../dynsections.js" > < / script >
< link href = "../../navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../resize.js" > < / script >
< script type = "text/javascript" src = "../../navtreedata.js" > < / script >
< script type = "text/javascript" src = "../../navtree.js" > < / script >
< link href = "../../search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
< script type = "text/javascript" src = "../../search/search.js" > < / script >
< script type = "text/x-mathjax-config" >
2021-10-26 03:34:27 +08:00
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
2021-02-11 12:59:12 +08:00
});
< / script >
< script type = "text/javascript" async = "async" src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js" > < / script >
< link href = "../../doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
2022-01-15 04:11:27 +08:00
< tr id = "projectrow" >
< td id = "projectalign" >
2021-10-26 03:34:27 +08:00
< div id = "projectname" > Algorithms_in_C< span id = "projectnumber" >   1.0.0< / span >
2021-02-11 12:59:12 +08:00
< / div >
< div id = "projectbrief" > Set of algorithms implemented in C.< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2022-09-08 08:17:03 +08:00
<!-- Generated by Doxygen 1.9.5 -->
2021-02-11 12:59:12 +08:00
< script type = "text/javascript" >
2021-10-26 03:34:27 +08:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2022-09-08 08:17:03 +08:00
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
2021-02-11 12:59:12 +08:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "../../menudata.js" > < / script >
< script type = "text/javascript" src = "../../menu.js" > < / script >
< script type = "text/javascript" >
2021-10-26 03:34:27 +08:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2021-02-11 12:59:12 +08:00
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-10-26 03:34:27 +08:00
/* @license-end */
< / script >
2021-02-11 12:59:12 +08:00
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
2021-10-26 03:34:27 +08:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2021-02-11 12:59:12 +08:00
$(document).ready(function(){initNavTree('d0/d8a/octal__to__hexadecimal_8c.html','../../'); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
2022-09-08 08:17:03 +08:00
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
2021-02-11 12:59:12 +08:00
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions< / a > < / div >
2021-10-26 03:34:27 +08:00
< div class = "headertitle" > < div class = "title" > octal_to_hexadecimal.c File Reference< / div > < / div >
2021-02-11 12:59:12 +08:00
< / div > <!-- header -->
< div class = "contents" >
< p > Octal to hexadecimal conversion by scanning user input.
< a href = "#details" > More...< / a > < / p >
< div class = "textblock" > < code > #include < assert.h> < / code > < br / >
< code > #include < math.h> < / code > < br / >
< code > #include < stdio.h> < / code > < br / >
< code > #include < stdlib.h> < / code > < br / >
< code > #include < string.h> < / code > < br / >
< / div > < div class = "textblock" > < div class = "dynheader" >
Include dependency graph for octal_to_hexadecimal.c:< / div >
< div class = "dyncontent" >
2022-09-08 08:17:03 +08:00
< div class = "center" > < iframe scrolling = "no" frameborder = "0" src = "../../d5/ddd/octal__to__hexadecimal_8c__incl.svg" width = "432" height = "124" > < p > < b > This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.< / b > < / p > < / iframe >
2021-02-11 12:59:12 +08:00
< / div >
< / div >
< / div > < table class = "memberdecls" >
2021-10-26 03:34:27 +08:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
2021-02-11 12:59:12 +08:00
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a86a4edb605c2a03d9175c59de679347d" > < td class = "memItemLeft" align = "right" valign = "top" > long  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" > octalToDecimal< / a > (long octalValue)< / td > < / tr >
< tr class = "memdesc:a86a4edb605c2a03d9175c59de679347d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert octal number to decimal number. < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a86a4edb605c2a03d9175c59de679347d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-10-26 03:34:27 +08:00
< tr class = "memitem:a823ef5170955cfef40e07d9a4d2e87e2" > < td class = "memItemLeft" align = "right" valign = "top" > char *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > octalToHexadecimal< / a > (long octalValue)< / td > < / tr >
< tr class = "memdesc:a823ef5170955cfef40e07d9a4d2e87e2" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the calling the function free. < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a823ef5170955cfef40e07d9a4d2e87e2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-02-11 12:59:12 +08:00
< tr class = "memitem:aa8dca7b867074164d5f45b0f3851269d" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d" > test< / a > ()< / td > < / tr >
< tr class = "memdesc:aa8dca7b867074164d5f45b0f3851269d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Test function. < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:aa8dca7b867074164d5f45b0f3851269d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" > main< / a > ()< / td > < / tr >
< tr class = "memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Main function. < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ae66f6b31b5ad750f1fe042a706a4e3d4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2021-10-26 03:34:27 +08:00
< div class = "textblock" > < p > Octal to hexadecimal conversion by scanning user input. < / p >
< p > The octalToHexadecimal function take the octal number as long return a string hexadecimal value after conversion < / p > < dl class = "section author" > < dt > Author< / dt > < dd > < a href = "https://github.com/rachitbhalla" target = "_blank" > Rachit Bhalla< / a > < / dd > < / dl >
2021-02-11 12:59:12 +08:00
< / div > < h2 class = "groupheader" > Function Documentation< / h2 >
2021-10-26 03:34:27 +08:00
< a id = "ae66f6b31b5ad750f1fe042a706a4e3d4" name = "ae66f6b31b5ad750f1fe042a706a4e3d4" > < / a >
2022-09-08 08:17:03 +08:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae66f6b31b5ad750f1fe042a706a4e3d4" > ◆   < / a > < / span > main()< / h2 >
2021-02-11 12:59:12 +08:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int main < / td >
< td > (< / td >
< td class = "paramtype" > void  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Main function. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > 0 on exit < / dd > < / dl >
2022-01-15 04:11:27 +08:00
< div class = "fragment" > < div class = "line" > < span class = "lineno" > 61< / span > {< / div >
< div class = "line" > < span class = "lineno" > 62< / span > < span class = "comment" > // execute the tests< / span > < / div >
< div class = "line" > < span class = "lineno" > 63< / span > < a class = "code hl_function" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d" > test< / a > ();< / div >
< div class = "line" > < span class = "lineno" > 64< / span > < / div >
< div class = "line" > < span class = "lineno" > 65< / span > < span class = "comment" > // get the value of octal number as input< / span > < / div >
< div class = "line" > < span class = "lineno" > 66< / span > < span class = "keywordtype" > int< / span > octalValue;< / div >
< div class = "line" > < span class = "lineno" > 67< / span > printf(< span class = "stringliteral" > " Enter an octal number: " < / span > );< / div >
< div class = "line" > < span class = "lineno" > 68< / span > scanf(< span class = "stringliteral" > " %d" < / span > , & octalValue);< / div >
< div class = "line" > < span class = "lineno" > 69< / span > < / div >
< div class = "line" > < span class = "lineno" > 70< / span > < span class = "comment" > // call the function octalToHexadecimal and print the hexadecimal value< / span > < / div >
< div class = "line" > < span class = "lineno" > 71< / span > < span class = "keywordtype" > char< / span > *hexadecimalValue = < a class = "code hl_function" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > octalToHexadecimal< / a > (octalValue);< / div >
< div class = "line" > < span class = "lineno" > 72< / span > printf(< span class = "stringliteral" > " Equivalent hexadecimal number is: %s" < / span > , hexadecimalValue);< / div >
< div class = "line" > < span class = "lineno" > 73< / span > < / div >
< div class = "line" > < span class = "lineno" > 74< / span > < span class = "comment" > // free the memory allocated dynamically in function octalToHexadecimal< / span > < / div >
< div class = "line" > < span class = "lineno" > 75< / span > < a class = "code hl_define" href = "../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768" > free< / a > (hexadecimalValue);< / div >
< div class = "line" > < span class = "lineno" > 76< / span > < / div >
< div class = "line" > < span class = "lineno" > 77< / span > < span class = "comment" > // return 0 and exit< / span > < / div >
< div class = "line" > < span class = "lineno" > 78< / span > < span class = "keywordflow" > return< / span > 0;< / div >
< div class = "line" > < span class = "lineno" > 79< / span > }< / div >
2021-02-18 06:41:16 +08:00
< div class = "ttc" id = "amalloc__dbg_8h_html_a9cc854374299a1dd933bf62029761768" > < div class = "ttname" > < a href = "../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768" > free< / a > < / div > < div class = "ttdeci" > #define free(ptr)< / div > < div class = "ttdoc" > This macro replace the standard free function with free_dbg.< / div > < div class = "ttdef" > < b > Definition:< / b > malloc_dbg.h:26< / div > < / div >
2021-10-26 03:34:27 +08:00
< div class = "ttc" id = "aoctal__to__hexadecimal_8c_html_a823ef5170955cfef40e07d9a4d2e87e2" > < div class = "ttname" > < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > octalToHexadecimal< / a > < / div > < div class = "ttdeci" > char * octalToHexadecimal(long octalValue)< / div > < div class = "ttdoc" > Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the call...< / div > < div class = "ttdef" > < b > Definition:< / b > octal_to_hexadecimal.c:38< / div > < / div >
2021-02-11 12:59:12 +08:00
< div class = "ttc" id = "aoctal__to__hexadecimal_8c_html_aa8dca7b867074164d5f45b0f3851269d" > < div class = "ttname" > < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#aa8dca7b867074164d5f45b0f3851269d" > test< / a > < / div > < div class = "ttdeci" > static void test()< / div > < div class = "ttdoc" > Test function.< / div > < div class = "ttdef" > < b > Definition:< / b > octal_to_hexadecimal.c:48< / div > < / div >
< / div > <!-- fragment --> < div class = "dynheader" >
Here is the call graph for this function:< / div >
< div class = "dyncontent" >
2022-09-08 08:17:03 +08:00
< div class = "center" > < iframe scrolling = "no" frameborder = "0" src = "../../d0/d8a/octal__to__hexadecimal_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width = "502" height = "62" > < p > < b > This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.< / b > < / p > < / iframe >
2021-02-11 12:59:12 +08:00
< / div >
< / div >
< / div >
< / div >
2021-10-26 03:34:27 +08:00
< a id = "a86a4edb605c2a03d9175c59de679347d" name = "a86a4edb605c2a03d9175c59de679347d" > < / a >
2022-09-08 08:17:03 +08:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a86a4edb605c2a03d9175c59de679347d" > ◆   < / a > < / span > octalToDecimal()< / h2 >
2021-02-11 12:59:12 +08:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > long octalToDecimal < / td >
< td > (< / td >
< td class = "paramtype" > long  < / td >
< td class = "paramname" > < em > octalValue< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Convert octal number to decimal number. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > octalValue< / td > < td > is the octal number that needs to be converted < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > a decimal number after conversion < / dd > < / dl >
2022-01-15 04:11:27 +08:00
< div class = "fragment" > < div class = "line" > < span class = "lineno" > 20< / span > {< / div >
< div class = "line" > < span class = "lineno" > 21< / span > < span class = "keywordtype" > long< / span > decimalValue = 0;< / div >
< div class = "line" > < span class = "lineno" > 22< / span > < span class = "keywordtype" > int< / span > i = 0;< / div >
< div class = "line" > < span class = "lineno" > 23< / span > < span class = "keywordflow" > while< / span > (octalValue) {< / div >
< div class = "line" > < span class = "lineno" > 24< / span > < span class = "comment" > // Extracts right-most digit, multiplies it with 8^i, and increment i by 1< / span > < / div >
< div class = "line" > < span class = "lineno" > 25< / span > decimalValue += (long)(octalValue % 10) * pow(8, i++);< / div >
< div class = "line" > < span class = "lineno" > 26< / span > < span class = "comment" > // Shift right in base 10< / span > < / div >
< div class = "line" > < span class = "lineno" > 27< / span > octalValue /= 10;< / div >
< div class = "line" > < span class = "lineno" > 28< / span > }< / div >
< div class = "line" > < span class = "lineno" > 29< / span > < span class = "keywordflow" > return< / span > decimalValue;< / div >
< div class = "line" > < span class = "lineno" > 30< / span > }< / div >
2021-02-11 12:59:12 +08:00
< / div > <!-- fragment -->
< / div >
< / div >
2021-10-26 03:34:27 +08:00
< a id = "a823ef5170955cfef40e07d9a4d2e87e2" name = "a823ef5170955cfef40e07d9a4d2e87e2" > < / a >
2022-09-08 08:17:03 +08:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a823ef5170955cfef40e07d9a4d2e87e2" > ◆   < / a > < / span > octalToHexadecimal()< / h2 >
2021-02-11 12:59:12 +08:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2021-10-26 03:34:27 +08:00
< td class = "memname" > char * octalToHexadecimal < / td >
2021-02-11 12:59:12 +08:00
< td > (< / td >
< td class = "paramtype" > long  < / td >
< td class = "paramname" > < em > octalValue< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Convert octal number to hexadecimal number dynamically allocated memory needs to be freed by the calling the function free. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > octalValue< / td > < td > is the octal number that needs to be converted < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > a hexadecimal value as a string after conversion < / dd > < / dl >
2022-01-15 04:11:27 +08:00
< div class = "fragment" > < div class = "line" > < span class = "lineno" > 38< / span > {< / div >
< div class = "line" > < span class = "lineno" > 39< / span > < span class = "keywordtype" > char< / span > *hexadecimalValue = < a class = "code hl_define" href = "../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee" > malloc< / a > (256 * < span class = "keyword" > sizeof< / span > (< span class = "keywordtype" > char< / span > ));< / div >
< div class = "line" > < span class = "lineno" > 40< / span > sprintf(hexadecimalValue, < span class = "stringliteral" > " %lX" < / span > , < a class = "code hl_function" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" > octalToDecimal< / a > (octalValue));< / div >
< div class = "line" > < span class = "lineno" > 41< / span > < span class = "keywordflow" > return< / span > hexadecimalValue;< / div >
< div class = "line" > < span class = "lineno" > 42< / span > }< / div >
2021-02-18 06:41:16 +08:00
< div class = "ttc" id = "amalloc__dbg_8h_html_a725f50ecaf1959d96de79b36b4788fee" > < div class = "ttname" > < a href = "../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee" > malloc< / a > < / div > < div class = "ttdeci" > #define malloc(bytes)< / div > < div class = "ttdoc" > This macro replace the standard malloc function with malloc_dbg.< / div > < div class = "ttdef" > < b > Definition:< / b > malloc_dbg.h:18< / div > < / div >
2021-02-11 12:59:12 +08:00
< div class = "ttc" id = "aoctal__to__hexadecimal_8c_html_a86a4edb605c2a03d9175c59de679347d" > < div class = "ttname" > < a href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a86a4edb605c2a03d9175c59de679347d" > octalToDecimal< / a > < / div > < div class = "ttdeci" > long octalToDecimal(long octalValue)< / div > < div class = "ttdoc" > Convert octal number to decimal number.< / div > < div class = "ttdef" > < b > Definition:< / b > octal_to_hexadecimal.c:20< / div > < / div >
< / div > <!-- fragment --> < div class = "dynheader" >
Here is the call graph for this function:< / div >
< div class = "dyncontent" >
2022-09-08 08:17:03 +08:00
< div class = "center" > < iframe scrolling = "no" frameborder = "0" src = "../../d0/d8a/octal__to__hexadecimal_8c_a823ef5170955cfef40e07d9a4d2e87e2_cgraph.svg" width = "311" height = "36" > < p > < b > This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.< / b > < / p > < / iframe >
2021-02-11 12:59:12 +08:00
< / div >
< / div >
< / div >
< / div >
2021-10-26 03:34:27 +08:00
< a id = "aa8dca7b867074164d5f45b0f3851269d" name = "aa8dca7b867074164d5f45b0f3851269d" > < / a >
2022-09-08 08:17:03 +08:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa8dca7b867074164d5f45b0f3851269d" > ◆   < / a > < / span > test()< / h2 >
2021-02-11 12:59:12 +08:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > static void test < / td >
< td > (< / td >
< td class = "paramtype" > void  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Test function. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > void < / dd > < / dl >
2022-01-15 04:11:27 +08:00
< div class = "fragment" > < div class = "line" > < span class = "lineno" > 48< / span > {< / div >
< div class = "line" > < span class = "lineno" > 49< / span > < span class = "comment" > /* test that hexadecimal value of octal number 213 is 8B */< / span > < / div >
< div class = "line" > < span class = "lineno" > 50< / span > assert(strcmp(< a class = "code hl_function" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > octalToHexadecimal< / a > (213), < span class = "stringliteral" > " 8B" < / span > ) == 0);< / div >
< div class = "line" > < span class = "lineno" > 51< / span > < / div >
< div class = "line" > < span class = "lineno" > 52< / span > < span class = "comment" > /* test that hexadecimal value of octal number 174 is 7C */< / span > < / div >
< div class = "line" > < span class = "lineno" > 53< / span > assert(strcmp(< a class = "code hl_function" href = "../../d0/d8a/octal__to__hexadecimal_8c.html#a823ef5170955cfef40e07d9a4d2e87e2" > octalToHexadecimal< / a > (174), < span class = "stringliteral" > " 7C" < / span > ) == 0);< / div >
< div class = "line" > < span class = "lineno" > 54< / span > }< / div >
2021-02-11 12:59:12 +08:00
< / div > <!-- fragment --> < div class = "dynheader" >
Here is the call graph for this function:< / div >
< div class = "dyncontent" >
2022-09-08 08:17:03 +08:00
< div class = "center" > < iframe scrolling = "no" frameborder = "0" src = "../../d0/d8a/octal__to__hexadecimal_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg" width = "403" height = "36" > < p > < b > This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.< / b > < / p > < / iframe >
2021-02-11 12:59:12 +08:00
< / div >
< / div >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "../../dir_9babc524d57e25f3d9f4179cabc3599e.html" > conversions< / a > < / li > < li class = "navelem" > < a class = "el" href = "../../d0/d8a/octal__to__hexadecimal_8c.html" > octal_to_hexadecimal.c< / a > < / li >
2022-09-08 08:17:03 +08:00
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "../../doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.5 < / li >
2021-02-11 12:59:12 +08:00
< / ul >
< / div >
< / body >
< / html >