Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 223

Comment by Peter - Reinstate Monica on C strlen on char array

$
0
0
@hasaanE No, a segmentation fault is an irregular, abrupt end of the program wherever it just happens to be executing; the caller's code is never reached again. If strlen returns, there was a zero byte early enough in memory that it was still accessible by the program so that no segmentation fault happened.

Viewing all articles
Browse latest Browse all 223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>