{"id":3236,"date":"2016-06-26T17:01:31","date_gmt":"2016-06-26T16:01:31","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=3236"},"modified":"2016-06-26T17:01:31","modified_gmt":"2016-06-26T16:01:31","slug":"practical-c-programming-switch-and-nested-switches-example","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/practical-c-programming-switch-and-nested-switches-example\/","title":{"rendered":"Practical C Programming &#8211; Switch and Nested Switches Example"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_3236\" class=\"pvc_stats all  \" data-element-id=\"3236\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p><span style=\"color: #ffffff;\">I wanted to explore a further level of switching to implement a sub level menu within a main switch option, by adding to my Imperial to metric units converter. This allows extra functionality to a handy program - a two way units conversion choice. \u00a0<\/span><\/p>\n<p><span style=\"color: #ffffff;\">Although trial and error placement is slow, it does let you think more about a program's operation, so help the learning curve, rather than just google an answer. The first working version program code is:<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\/*units converter for dist, vol or mass*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">#include &lt;stdio.h&gt;<\/span><br \/>\n<span style=\"color: #ff0000;\">float km; \/*= 1;*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float miles; \/*= 1.60934 * km ;*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float litre; \/*= 1;*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float pints; \/*= (1.75975 \/ litre);*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float gallons; \/*= (8 * pints);*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float kg; \/*= 1;*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float lb; \/* = (2.204622 * kg);*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">char line[10]; \/*input value array space *\/<\/span><br \/>\n<span style=\"color: #ff0000;\">char operator; \/* menu operator the user specified *\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float value; \/* input value the user specified *\/<\/span><br \/>\n<span style=\"color: #ff0000;\">float result;<\/span><br \/>\n<span style=\"color: #ff0000;\">int main()<\/span><br \/>\n<span style=\"color: #ff0000;\">{<\/span><br \/>\n<span style=\"color: #ff0000;\">while (1)<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"program to convert Imperial units to metric. Enter menu option: \\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"1: km to miles\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"2: litres to pints\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"3: kg to pounds\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"q: quit\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%c\", &amp;operator);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">if ((operator == 'q') || (operator == 'Q'))<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> switch (operator)<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> case '1':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"1: convert km to miles. Enter km value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value \/ 1.60934;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%f km is %0.3f miles \\n\\n\", value, result);<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">case '2':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"1: convert litres to pints. Enter litre value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value * 1.75975;<\/span><br \/>\n<span style=\"color: #ff0000;\"> gallons = result\/8;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%0.3f litres is %0.3f pints or %0.3f gallons\\n\\n\", value, result, gallons );<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">case '3':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"3: convert kg to pounds. Enter kg value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value * 2.204622;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%0.3f kg is %0.3f pounds \\n\\n\", value, result);<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">default:<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"Invalid key, try again! %c\\n\\n\", operator);<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> }<\/span><br \/>\n<span style=\"color: #ff0000;\"> }<\/span><br \/>\n<span style=\"color: #ff0000;\"> }<\/span><br \/>\n<span style=\"color: #ff0000;\">printf(\"\\n\"); \/*tidy cmd line*\/<\/span><br \/>\n<span style=\"color: #ff0000;\">return (0);<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/unitconverter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3225\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/unitconverter.png\" alt=\"unitconverter.png\" width=\"756\" height=\"1233\" \/><\/a><\/p>\n<p>This offers only metric to Imperial units conversion at present:<\/p>\n<p>$<span style=\"color: #0000ff;\"> .\/unitsconverter<\/span><br \/>\n<span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">1<\/span><br \/>\n<span style=\"color: #ff0000;\">1: convert km to miles. Enter km value: 1<\/span><br \/>\n<span style=\"color: #ff0000;\">1.000000 km is 0.621 miles<\/span><\/p>\n<p><span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">w<\/span><br \/>\n<span style=\"color: #ff0000;\">Invalid key, try again! w<\/span><\/p>\n<p><span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">q<\/span><\/p>\n<p>Now it was just finding the correct format using clues from the above switch cases - with breaks in the right places - to make the extra nested switch options behave as desired. The first working case 1 sub menu code is shown below so you can see how it enters the first case option and breaks out to the main menu after either choice is completed:<\/p>\n<p><span style=\"color: #ff0000;\">int main()<\/span><br \/>\n<span style=\"color: #ff0000;\">{<\/span><br \/>\n<span style=\"color: #ff0000;\">while (1)<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"program to convert Imperial units to metric. Enter menu option: \\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"1: km to miles\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"2: litres to pints\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"3: kg to pounds\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"q: quit\\n\");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%c\", &amp;operator);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">if ((operator == 'q') || (operator == 'Q'))<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> switch (operator)<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> case '1':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"Want to (k) convert km to miles or (m) miles to km?: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%c\", &amp;operator);<\/span><br \/>\n<span style=\"color: #ff0000;\"> switch (operator)<\/span><br \/>\n<span style=\"color: #ff0000;\"> {<\/span><br \/>\n<span style=\"color: #ff0000;\"> case 'k':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"k: convert km to miles. Enter km value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value \/ 1.60934;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%f km is %0.3f miles \\n\\n\", value, result);<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> case 'm':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"m: convert miles to km. Enter miles value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value * 1.60934;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%f m is %0.3f km \\n\\n\", value, result);<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> }<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><br \/>\n<span style=\"color: #ff0000;\"> case '2':<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"2: convert litres to pints. Enter litre value: \");<\/span><br \/>\n<span style=\"color: #ff0000;\"> fgets(line, sizeof(line), stdin);<\/span><br \/>\n<span style=\"color: #ff0000;\"> sscanf(line, \"%f\", &amp;value);<\/span><br \/>\n<span style=\"color: #ff0000;\"> result = value * 1.75975;<\/span><br \/>\n<span style=\"color: #ff0000;\"> gallons = result\/8;<\/span><br \/>\n<span style=\"color: #ff0000;\"> printf(\"%0.3f litres is %0.3f pints or %0.3f gallons\\n\\n\", value, result, gallons );<\/span><br \/>\n<span style=\"color: #ff0000;\"> break;<\/span><\/p>\n<p>This shows both extra options working as required:<\/p>\n<p>$<span style=\"color: #0000ff;\"> .\/unitsconverter2<\/span><br \/>\n<span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">1<\/span><br \/>\n<span style=\"color: #ff0000;\">Want to (k) convert km to miles or (m) miles to km?: k<\/span><br \/>\n<span style=\"color: #ff0000;\">k: convert km to miles. Enter km value: 1<\/span><br \/>\n<span style=\"color: #ff0000;\">1.000000 km is 0.621 miles<\/span><\/p>\n<p><span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">1<\/span><br \/>\n<span style=\"color: #ff0000;\">Want to (k) convert km to miles or (m) miles to km?: m<\/span><br \/>\n<span style=\"color: #ff0000;\">m: convert miles to km. Enter miles value: 1<\/span><br \/>\n<span style=\"color: #ff0000;\">1.000000 m is 1.609 km<\/span><\/p>\n<p><span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">Invalid key, try again! w<\/span><\/p>\n<p><span style=\"color: #ff0000;\">program to convert Imperial units to metric. Enter menu option: <\/span><br \/>\n<span style=\"color: #ff0000;\">1: km to miles<\/span><br \/>\n<span style=\"color: #ff0000;\">2: litres to pints<\/span><br \/>\n<span style=\"color: #ff0000;\">3: kg to pounds<\/span><br \/>\n<span style=\"color: #ff0000;\">q: quit<\/span><br \/>\n<span style=\"color: #ff0000;\">q<\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/unitsconv2.c.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3242\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/unitsconv2.c.png\" alt=\"unitsconv2.c.png\" width=\"857\" height=\"1018\" \/><\/a><\/p>\n<p>Now it's just a case of pasting the same format to the other 2 options and re-arranging the formulae and units.<\/p>\n<p>The exit beaks from the final main case 3 have to be correctly placed with {}'s to account for the default already in place:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/case3conv.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-3245\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/06\/case3conv.png\" alt=\"case3conv.png\" width=\"932\" height=\"644\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_3236\" class=\"pvc_stats all  \" data-element-id=\"3236\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>I wanted to explore a further level of switching to implement a sub level menu within a main switch option, by adding to my Imperial to metric units converter. This allows extra functionality to a handy program - a two way units conversion choice. \u00a0 Although trial and error placement is slow, it does let <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/practical-c-programming-switch-and-nested-switches-example\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Practical C Programming &#8211; Switch and Nested Switches Example<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3236","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/3236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=3236"}],"version-history":[{"count":0,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/3236\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=3236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=3236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=3236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}