words__tools.h 909 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* FILE
  2. *
  3. * file: words.cpp
  4. *
  5. *
  6. */
  7. /*
  8. */
  9. # ifndef __LIB_WORDS
  10. # define __LIB_WORDS
  11. // # include <stdio.h>
  12. /* for use string */
  13. # include <string.h>
  14. # include "word.c"
  15. /* */
  16. struct Words
  17. {
  18. /* */
  19. struct Word* head;
  20. /* */
  21. struct Word* tail;
  22. /* */
  23. struct Word* select;
  24. };
  25. /* INFO del (WithSelect _)
  26. *
  27. * remove the preselected item - from the selected point (select)
  28. *
  29. * return: void
  30. *
  31. *
  32. */
  33. void
  34. del (struct Words *this);
  35. struct Word*
  36. words__get(struct Words *this);
  37. void
  38. clear__str (char *value);
  39. /* INFO del (WithTail _)
  40. *
  41. * remove the last element - from the tail part (tail)
  42. *
  43. * return: this->tail element
  44. *
  45. *
  46. */
  47. void
  48. del__tail (struct Words *this);
  49. /* INFO del (WithHead _)
  50. *
  51. * remove the first element - from the head part (head)
  52. *
  53. * return: this->head element
  54. *
  55. *
  56. */
  57. void
  58. del__head (struct Words *this);
  59. # endif /* __LIB_WORDS */