CodeCogs
HomeForumsCart
Login



Forgotten Password?

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 1.81
sub units 0.00
+
0
StringsSearch

detect comments

Finds the end of a C/C++ comment, if it exists at the current location within a string
Controller: CodeCogs

Interface

C++
Excel

Detect Comments

 
intdetect_commentsconst char*str
intoffset
intstr_len )
This function looks for the existance of a C or C++ style comment, which starts with either "//" or "/*". Upon find either of these comment types, the function will then find the corresponding end to the comment.

There are two C/C++ comments:

Parameters

strThis is the input string, with text that needs analysing.
offsetThe location within str to search for the start of a comment. If no comment is found at str[offset] then offset is returned.
str_lenThe length of the str to search. If you are unsure use strlen(str).
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2022-03-14 15:43:56