c - Library function for reversing the string -
is there alternative strrev()
in c? interested in function same must included in standard library.
i aware operation can implemented user defined function looking library alternative.precisely there few functions take example rindex (identical strrchr()
) more common in perl still works in gcc-4.3.4,i inquisitive know if there strrev()
since common reversing function in perl i.e reverse<>
not working in c.
compiler specification: [c (gcc-4.3.4)]
thanks,
ps:i aware of c++'s stl reverse question strictly c.
as far know, there no such function in c standard libraries. if don't mind using c++, there reverse
template function in algorithms
.
Comments
Post a Comment