| 33 | '''This is right:''' |
| 34 | {{{ |
| 35 | int i; |
| 36 | |
| 37 | /* |
| 38 | * This is a multi line comment, |
| 39 | * Delete '\n' char. |
| 40 | * Note that edit_delete() will not corrupt anything if called while |
| 41 | * cursor position is EOF. |
| 42 | */ |
| 43 | (void) edit_delete (edit); |
| 44 | |
| 45 | /* This is a one line comment. Allocate additional memory. */ |
| 46 | mem = (char *) malloc (memneed); |
| 47 | |
| 48 | /** |
| 49 | * @brief This is a doxygen comment. |
| 50 | * |
| 51 | * This is a more detailed explanation of |
| 52 | * this simple function. |
| 53 | * |
| 54 | * @param[in] param1 The parameter value of the function. |
| 55 | * |
| 56 | * @param[out] result1 The result value of the function. |
| 57 | * |
| 58 | * @return 0 on success and -1 on error. |
| 59 | */ |
| 60 | int example(int param1, int *result1); |
| 61 | }}} |
| 62 | |
| 63 | '''This is wrong:''' |
| 64 | {{{ |
| 65 | //This is a one line comment. |
| 66 | |
| 67 | /*This is a one line comment.*/ |
| 68 | |
| 69 | /* This is a multi line comment, |
| 70 | with some more words...*/ |
| 71 | }}} |