Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5.  
  6.  
  7. int main()
  8. {
  9. char *strr_char(const char *src, char ch)
  10. {
  11. int i;
  12. int *a = NULL;
  13. for (i = 0; i < strlen(src); ++i)
  14. if (src[i] == ch) a = &src[i];
  15. return a;
  16.  
  17. }
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. int str_compare (const char *s1, const char s2)
  26. {
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. }
  35. char *str_reverse (char *s)
  36. {
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. }
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. return 0;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement