×

Weaknesses analysis of C string functions based on topological space. (Chinese. English summary) Zbl 1463.68014

Summary: There are many weaknesses of C language without checking boundaries. It is an innovative method to analyze the weaknesses based on point-set topology. In this paper, the continuity of topological space is used to solve the problem of string functions. It is proved that the character set stored in the string array is a topological space on the given subset family according to the definition of point-set topology. The string function could be a continuous mapping while there is not any weakness. So there are some weaknesses to be solved if it could not guarantee a continuous mapping. The continuity of topological space can be used to determine whether the code is right or not. It can promote the code writing and lead to write a better programming language.

MSC:

68N15 Theory of programming languages
54A05 Topological spaces and generalizations (closure spaces, etc.)
54C05 Continuous maps
PDFBibTeX XMLCite