Timeline for why is my char array empty
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 4, 2022 at 14:44 | vote | accept | Musa | ||
| Mar 2, 2022 at 21:21 | answer | added | Musa | timeline score: 1 | |
| Mar 2, 2022 at 15:46 | answer | added | DataFiddler | timeline score: 2 | |
| Mar 2, 2022 at 10:53 | answer | added | Majenko | timeline score: 1 | |
| Mar 2, 2022 at 10:11 | comment | added | Majenko | 256kbit is not 256000 bits. It's 256 * 1024 bits, or 262144. | |
| Mar 2, 2022 at 9:11 | comment | added | Edgar Bonet |
Are you sure you are putting the actual array password, rather than a pointer produced by its decay (like char *foo = password; ExtEEPROM.put(..., foo);)?
|
|
| Mar 2, 2022 at 7:09 | comment | added | the busybee |
OT: sizeof is an operator, not a function, so use sizeof variable. However, its operand can be a type, and then it needs parentheses for syntactIcal reasons. This leads to this ubiquitous bad habit to write it as a function.
|
|
| Mar 2, 2022 at 7:02 | comment | added | the busybee |
OT: Don't write any_boolean == false, use !any_boolean. If you think think, you should make sure that anyone understands, then I'd recommend (any_boolean == false) == true. :-D
|
|
| Mar 2, 2022 at 4:53 | comment | added | Nick Gammon♦ | Try doing a serial print of password to see if the toCharArray call did what it was supposed to do. | |
| S Mar 2, 2022 at 2:45 | review | First questions | |||
| Mar 2, 2022 at 2:48 | |||||
| S Mar 2, 2022 at 2:45 | history | asked | Musa | CC BY-SA 4.0 |