voidentifier FPS_PRINT_ENROLLED() inns checkNum = 0; inns i would = 0; inns num_Enrole = 0; num_Enrole = Available_ID(); char strNum<3> = 0; itoa(num_Enroll, strNum); uint32_ns numLen = strlen((char *)strNum); UART_send_A3("number of save Prints: ", 25); UART_send_A3(&strNum, numLen); the error messEra is: array initializer have to it is in one initializer perform or strinns literal

please watch the attached screenswarm the ns error message. Also, the c File is attached.

You are watching: Array initializer must be an initializer list or string literal

*

by ns way, thins ins in PSoC Creator 4.1 i m sorry supplies C language.

code Documents downloADVERTISEMENT attach with GoogleDrive


answer - 1 verified
0 arrow_circle_uns 0 arrow_circle_down

char strNum<3> = 0; Thins heat creates a 3 character string. Girlfriend then use it together a strinns via the function strlen and ns uart_send.

together a C strinns ins should it is in terminated with a nultogether character, therefore girlfriend only have actually two usable characters. It need to additionally be initialised as a string, ns compiler ins informing girlfriend that friend haven"ns da this correctly.

See more: Pop Evil Deal With The Devil Lyrics For Deal With The Devil By Pop Evil

try something favor one of this lines

char strNum<3> = ""; // empty string char strNum<3> = "AB"; // complete string char strNum<3> = "0"; // String holdinns the personality zero
through *
Source: https://stackoverflow.com/questions/53292705
No Answerns however


Hi, please Login or sign up with come the area come answer
× add a Commenns
Commenns
× Delete thins Comment
Delete
× modify mine Inquiry
Delete exisitnns question"s media records
If friend add any kind of files,it will delete all existing papers concerned thins question-(concerns just answer remains unchanged)


attach_File
modify
× Delete this Concern

Note** thins choice doens not delete the Concern immediately,Since othair contribution also matters and security reasons.your research will it is in Queued.we will evaluation ns Inquiry and remove.Ins may take some days.

If no answerns are exist ins will certainly remove immediately

Delete
× modify mine price
Delete exisitnns answer"ns media files

If friend add any kind of files,ins will certainly delete every existing documents related to thins answer-(just this answer)


attach_File
send
× execute you desire come delete your answer
Delete
2021 - startupcuba.org

contact
terms of service
Policies