mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
C library: Add ffs(). Add strings.h. Move strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
This commit is contained in:
@@ -442,7 +442,7 @@ void os_start(void)
|
||||
* that has pid == 0 and sched_priority == 0.
|
||||
*/
|
||||
|
||||
bzero((void *)&g_idletcb[cpu], sizeof(struct task_tcb_s));
|
||||
memset((void *)&g_idletcb[cpu], 0, sizeof(struct task_tcb_s));
|
||||
g_idletcb[cpu].cmn.pid = g_lastpid;
|
||||
g_idletcb[cpu].cmn.task_state = TSTATE_TASK_RUNNING;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user