linkList.h 437 B

12345678910111213141516171819202122
  1. #ifndef __LINKLIST_H__
  2. #define __LINKLIST_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct linkList{
  7. uint16_t data;
  8. struct linkList *next;
  9. } linkListStruct;
  10. linkListStruct *linkListCreate(uint16_t n);
  11. linkListStruct *linkListAppend(linkListStruct *list, uint16_t data);
  12. uint32_t linkListSum(linkListStruct *list, uint8_t deleteNum, uint16_t count, float ratio);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif /* __LINKLIST_H__ */