ecere/sys/JSON: Adding a new line after <br>
[sdk] / doc / ecereCOM / char-pointer.econ
1 {
2    name = "char *",
3    description = "Core C 'char *' data type, mostly equivalent to the String data type. Ecere APIs taking a String or char * representing text expect UTF-8 encoding.",
4    usage = "Used in the declaration section of code, which is before any statements. <br>"
5       "<br>"
6       "A variable declared as being a char * can be assigned any literal string which is enclosed between double quotation marks (\" \").<br>"
7       "<br>"
8       "A key thing to remember is that the * is attached to the name of the variable, not the type.",
9    example = "char * thisString; // A stand alone declaration of a char *.<br>"
10       "char * aString, * bString; // Declaring two char *s at the same time.<br>"
11       "char * cString = \"Hello\", char * dString = \"World\"; // Declaring and initializing two chars and initializing them at the same time.<br>"
12       "________________________________________<br>"
13       "<br>"
14       "class Hello : Application<br>"
15       "{<br>"
16       "   void Main()<br>"
17       "   {<br>"
18       "      char * helloString = \"Hello, World!\";<br>"
19       "      printf(\"%s\\n\", helloString);<br>"
20       "   }<br>"
21       "}<br>"
22       "<br>"
23       "<br>"
24       "<br>"
25       "Output:<br>"
26       "Hello, World!",
27    remarks = "char * is equivalent to char * in C.",
28    also = "bool, byte, char, double, enum, float, int, int64, uint, uint16, uint32, uint64"
29 }