SC_ScoreFormatter_FormatScore()
Formats the given SC_Score object into a string using a given format.
Synopsis:
#include <scoreloop/sc_score_formatter.h>
SC_Error_t SC_ScoreFormatter_FormatScore(SC_ScoreFormatter_h self, SC_Score_h score, SC_ScoreFormat_t format, SC_String_h *pString)
Arguments:
- self
-
An opaque handle of the SC_ScoreFormatter instance.
- score
-
A score to format.
- format
-
A format string to use to format the score,
- pString
-
Out: pointer to the handle of the SC_String instance created.
Library:
libscoreloopcoreDescription:
This method creates a new instance of SC_String, with a reference count equal to 1. It must be released by the caller.
Returns:
SC_Error_t An error code (a value of SC_OK indicates success, any other value indicates an error).
- See also: